migrate backup actions to plugins

Signed-off-by: Steve Kriss <steve@heptio.com>
This commit is contained in:
Steve Kriss
2017-11-21 10:03:03 -08:00
parent 2ce15de2f8
commit 0f2d1ab82b
27 changed files with 1817 additions and 678 deletions
+34
View File
@@ -0,0 +1,34 @@
syntax = "proto3";
package generated;
import "Shared.proto";
message AppliesToResponse {
repeated string includedNamespaces = 1;
repeated string excludedNamespaces = 2;
repeated string includedResources = 3;
repeated string excludedResources = 4;
string selector = 5;
}
message ExecuteRequest {
bytes item = 1;
bytes backup = 2;
}
message ExecuteResponse {
bytes item = 1;
repeated ResourceIdentifier additionalItems = 2;
}
message ResourceIdentifier {
string group = 1;
string resource = 2;
string namespace = 3;
string name = 4;
}
service BackupItemAction {
rpc AppliesTo(Empty) returns (AppliesToResponse);
rpc Execute(ExecuteRequest) returns (ExecuteResponse);
}