Files
onepanel/api/label.proto
Aleksandr Melnikov 58eb005851 Moving the label messages out of workflow and into it's own proto file.
- CronWorkflows re-use the same message types.
Added endpoints for CronWorkflow label operations.
2020-04-02 14:56:00 -07:00

39 lines
594 B
Protocol Buffer

syntax = "proto3";
package api;
message KeyValue {
string key = 1;
string value = 2;
}
message Labels {
repeated KeyValue items = 1;
}
message AddLabelsRequest {
string namespace = 1;
string name = 2;
Labels labels = 3;
}
message ReplaceLabelsRequest {
string namespace = 1;
string name = 2;
Labels labels = 3;
}
message GetLabelsRequest {
string namespace = 1;
string name = 2;
}
message GetLabelsResponse {
repeated KeyValue labels = 1;
}
message DeleteLabelRequest {
string namespace = 1;
string name = 2;
string key = 3;
}