Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions protect/control/v1/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ message ZoneNetworkNeighborEntry {
uint32 kind = 6;
}

message ZoneServiceConfig {
string zone_id = 1;
string service = 2;
}

message ZoneNetworkConfig {
repeated ZoneNetworkInterfaceConfig interfaces = 1;
repeated ZoneNetworkRoute routes = 2;
Expand Down Expand Up @@ -300,6 +305,11 @@ message NetworkReservation {
string gateway_mac = 7;
}

message ServiceEntry {
string zone_id = 1;
string service_name = 2;
}

message WorkloadSpec {
string name = 1;
string zone_id = 2;
Expand Down
33 changes: 33 additions & 0 deletions protect/control/v1/control.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,14 @@ service ControlService {
rpc ResolveZoneIds(ResolveZoneIdsRequest) returns (ResolveZoneIdsReply);
rpc GetZone(GetZoneRequest) returns (GetZoneReply);
rpc ListZones(ListZonesRequest) returns (stream ListZonesReply);
rpc DiscoverServices(DiscoverServicesRequest) returns (stream DiscoverServicesReply);

rpc UpdateZoneResources(UpdateZoneResourcesRequest) returns (UpdateZoneResourcesReply);
rpc ConfigureZoneNetwork(ConfigureZoneNetworkRequest) returns (ConfigureZoneNetworkReply);

rpc AdvertiseZoneService(AdvertiseZoneServiceRequest) returns (AdvertiseZoneServiceReply);
rpc UnadvertiseZoneService(UnadvertiseZoneServiceRequest) returns (UnadvertiseZoneServiceReply);

rpc AttachZoneConsole(stream ZoneConsoleRequest) returns (stream ZoneConsoleReply);
rpc ExecuteZoneCommand(stream ExecuteZoneCommandRequest) returns (stream ExecuteZoneCommandReply);
rpc ReadZoneMetrics(ReadZoneMetricsRequest) returns (ReadZoneMetricsReply);
Expand Down Expand Up @@ -327,6 +331,12 @@ message ZoneKernelEventParam {
string param_type_pretty = 5;
}

message DiscoverServicesRequest {}

message DiscoverServicesReply {
repeated ServiceEntry service_entry = 1;
}

message ExecuteZoneCommandRequest {
oneof request {
ExecuteZoneCommandStart start = 1;
Expand Down Expand Up @@ -394,6 +404,8 @@ message WatchEventsReply {
oneof event {
ZoneChangedEvent zone_changed = 1;
WorkloadChangedEvent workload_changed = 2;
AdvertiseServiceEvent advertise_service = 3;
UnadvertiseServiceEvent unadvertise_service = 4;
}
}

Expand All @@ -405,6 +417,14 @@ message WorkloadChangedEvent {
Workload workload = 1;
}

message AdvertiseServiceEvent {
ServiceEntry service_entry = 1;
}

message UnadvertiseServiceEvent {
string uuid = 1;
}

message ReadZoneMetricsRequest {
string zone_id = 1;
}
Expand Down Expand Up @@ -593,6 +613,19 @@ message ConfigureZoneNetworkRequest {

message ConfigureZoneNetworkReply {}

message AdvertiseZoneServiceRequest {
string uuid = 1;
ZoneServiceConfig config = 2;
}

message AdvertiseZoneServiceReply {}

message UnadvertiseZoneServiceRequest {
ZoneServiceConfig config = 2;
}

message UnadvertiseZoneServiceReply {}

message DialNetworkSocketRequest {
oneof request {
DialNetworkSocketStart start = 1;
Expand Down