mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-05-02 13:25:48 +00:00
Refactor protobuf (#1354)
* Update protobuffs Signed-off-by: Carlisia <carlisiac@vmware.com>
This commit is contained in:
committed by
Nolan Brubaker
parent
956152d6e1
commit
13eaad0e64
@@ -53,7 +53,7 @@ func newBackupItemActionGRPCClient(base *clientBase, clientConn *grpc.ClientConn
|
||||
}
|
||||
|
||||
func (c *BackupItemActionGRPCClient) AppliesTo() (velero.ResourceSelector, error) {
|
||||
req := &proto.AppliesToRequest{
|
||||
req := &proto.BackupItemActionAppliesToRequest{
|
||||
Plugin: c.plugin,
|
||||
}
|
||||
|
||||
@@ -63,11 +63,11 @@ func (c *BackupItemActionGRPCClient) AppliesTo() (velero.ResourceSelector, error
|
||||
}
|
||||
|
||||
return velero.ResourceSelector{
|
||||
IncludedNamespaces: res.IncludedNamespaces,
|
||||
ExcludedNamespaces: res.ExcludedNamespaces,
|
||||
IncludedResources: res.IncludedResources,
|
||||
ExcludedResources: res.ExcludedResources,
|
||||
LabelSelector: res.Selector,
|
||||
IncludedNamespaces: res.ResourceSelector.IncludedNamespaces,
|
||||
ExcludedNamespaces: res.ResourceSelector.ExcludedNamespaces,
|
||||
IncludedResources: res.ResourceSelector.IncludedResources,
|
||||
ExcludedResources: res.ResourceSelector.ExcludedResources,
|
||||
LabelSelector: res.ResourceSelector.Selector,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ func (s *BackupItemActionGRPCServer) getImpl(name string) (velero.BackupItemActi
|
||||
return itemAction, nil
|
||||
}
|
||||
|
||||
func (s *BackupItemActionGRPCServer) AppliesTo(ctx context.Context, req *proto.AppliesToRequest) (response *proto.AppliesToResponse, err error) {
|
||||
func (s *BackupItemActionGRPCServer) AppliesTo(ctx context.Context, req *proto.BackupItemActionAppliesToRequest) (response *proto.BackupItemActionAppliesToResponse, err error) {
|
||||
defer func() {
|
||||
if recoveredErr := handlePanic(recover()); recoveredErr != nil {
|
||||
err = recoveredErr
|
||||
@@ -65,12 +65,14 @@ func (s *BackupItemActionGRPCServer) AppliesTo(ctx context.Context, req *proto.A
|
||||
return nil, newGRPCError(err)
|
||||
}
|
||||
|
||||
return &proto.AppliesToResponse{
|
||||
IncludedNamespaces: resourceSelector.IncludedNamespaces,
|
||||
ExcludedNamespaces: resourceSelector.ExcludedNamespaces,
|
||||
IncludedResources: resourceSelector.IncludedResources,
|
||||
ExcludedResources: resourceSelector.ExcludedResources,
|
||||
Selector: resourceSelector.LabelSelector,
|
||||
return &proto.BackupItemActionAppliesToResponse{
|
||||
&proto.ResourceSelector{
|
||||
IncludedNamespaces: resourceSelector.IncludedNamespaces,
|
||||
ExcludedNamespaces: resourceSelector.ExcludedNamespaces,
|
||||
IncludedResources: resourceSelector.IncludedResources,
|
||||
ExcludedResources: resourceSelector.ExcludedResources,
|
||||
Selector: resourceSelector.LabelSelector,
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ func newObjectStoreGRPCClient(base *clientBase, clientConn *grpc.ClientConn) int
|
||||
// configuration key-value pairs. It returns an error if the ObjectStore
|
||||
// cannot be initialized from the provided config.
|
||||
func (c *ObjectStoreGRPCClient) Init(config map[string]string) error {
|
||||
req := &proto.InitRequest{
|
||||
req := &proto.ObjectStoreInitRequest{
|
||||
Plugin: c.plugin,
|
||||
Config: config,
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ func (s *ObjectStoreGRPCServer) getImpl(name string) (velero.ObjectStore, error)
|
||||
// Init prepares the ObjectStore for usage using the provided map of
|
||||
// configuration key-value pairs. It returns an error if the ObjectStore
|
||||
// cannot be initialized from the provided config.
|
||||
func (s *ObjectStoreGRPCServer) Init(ctx context.Context, req *proto.InitRequest) (response *proto.Empty, err error) {
|
||||
func (s *ObjectStoreGRPCServer) Init(ctx context.Context, req *proto.ObjectStoreInitRequest) (response *proto.Empty, err error) {
|
||||
defer func() {
|
||||
if recoveredErr := handlePanic(recover()); recoveredErr != nil {
|
||||
err = recoveredErr
|
||||
|
||||
@@ -53,17 +53,17 @@ func newRestoreItemActionGRPCClient(base *clientBase, clientConn *grpc.ClientCon
|
||||
}
|
||||
|
||||
func (c *RestoreItemActionGRPCClient) AppliesTo() (velero.ResourceSelector, error) {
|
||||
res, err := c.grpcClient.AppliesTo(context.Background(), &proto.AppliesToRequest{Plugin: c.plugin})
|
||||
res, err := c.grpcClient.AppliesTo(context.Background(), &proto.RestoreItemActionAppliesToRequest{Plugin: c.plugin})
|
||||
if err != nil {
|
||||
return velero.ResourceSelector{}, fromGRPCError(err)
|
||||
}
|
||||
|
||||
return velero.ResourceSelector{
|
||||
IncludedNamespaces: res.IncludedNamespaces,
|
||||
ExcludedNamespaces: res.ExcludedNamespaces,
|
||||
IncludedResources: res.IncludedResources,
|
||||
ExcludedResources: res.ExcludedResources,
|
||||
LabelSelector: res.Selector,
|
||||
IncludedNamespaces: res.ResourceSelector.IncludedNamespaces,
|
||||
ExcludedNamespaces: res.ResourceSelector.ExcludedNamespaces,
|
||||
IncludedResources: res.ResourceSelector.IncludedResources,
|
||||
ExcludedResources: res.ResourceSelector.ExcludedResources,
|
||||
LabelSelector: res.ResourceSelector.Selector,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ func (s *RestoreItemActionGRPCServer) getImpl(name string) (velero.RestoreItemAc
|
||||
return itemAction, nil
|
||||
}
|
||||
|
||||
func (s *RestoreItemActionGRPCServer) AppliesTo(ctx context.Context, req *proto.AppliesToRequest) (response *proto.AppliesToResponse, err error) {
|
||||
func (s *RestoreItemActionGRPCServer) AppliesTo(ctx context.Context, req *proto.RestoreItemActionAppliesToRequest) (response *proto.RestoreItemActionAppliesToResponse, err error) {
|
||||
defer func() {
|
||||
if recoveredErr := handlePanic(recover()); recoveredErr != nil {
|
||||
err = recoveredErr
|
||||
@@ -60,17 +60,19 @@ func (s *RestoreItemActionGRPCServer) AppliesTo(ctx context.Context, req *proto.
|
||||
return nil, newGRPCError(err)
|
||||
}
|
||||
|
||||
appliesTo, err := impl.AppliesTo()
|
||||
resourceSelector, err := impl.AppliesTo()
|
||||
if err != nil {
|
||||
return nil, newGRPCError(err)
|
||||
}
|
||||
|
||||
return &proto.AppliesToResponse{
|
||||
IncludedNamespaces: appliesTo.IncludedNamespaces,
|
||||
ExcludedNamespaces: appliesTo.ExcludedNamespaces,
|
||||
IncludedResources: appliesTo.IncludedResources,
|
||||
ExcludedResources: appliesTo.ExcludedResources,
|
||||
Selector: appliesTo.LabelSelector,
|
||||
return &proto.RestoreItemActionAppliesToResponse{
|
||||
&proto.ResourceSelector{
|
||||
IncludedNamespaces: resourceSelector.IncludedNamespaces,
|
||||
ExcludedNamespaces: resourceSelector.ExcludedNamespaces,
|
||||
IncludedResources: resourceSelector.IncludedResources,
|
||||
ExcludedResources: resourceSelector.ExcludedResources,
|
||||
Selector: resourceSelector.LabelSelector,
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ func newVolumeSnapshotterGRPCClient(base *clientBase, clientConn *grpc.ClientCon
|
||||
// configuration key-value pairs. It returns an error if the VolumeSnapshotter
|
||||
// cannot be initialized from the provided config.
|
||||
func (c *VolumeSnapshotterGRPCClient) Init(config map[string]string) error {
|
||||
req := &proto.InitRequest{
|
||||
req := &proto.VolumeSnapshotterInitRequest{
|
||||
Plugin: c.plugin,
|
||||
Config: config,
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ func (s *VolumeSnapshotterGRPCServer) getImpl(name string) (velero.VolumeSnapsho
|
||||
// Init prepares the VolumeSnapshotter for usage using the provided map of
|
||||
// configuration key-value pairs. It returns an error if the VolumeSnapshotter
|
||||
// cannot be initialized from the provided config.
|
||||
func (s *VolumeSnapshotterGRPCServer) Init(ctx context.Context, req *proto.InitRequest) (response *proto.Empty, err error) {
|
||||
func (s *VolumeSnapshotterGRPCServer) Init(ctx context.Context, req *proto.VolumeSnapshotterInitRequest) (response *proto.Empty, err error) {
|
||||
defer func() {
|
||||
if recoveredErr := handlePanic(recover()); recoveredErr != nil {
|
||||
err = recoveredErr
|
||||
|
||||
@@ -15,6 +15,8 @@ It is generated from these files:
|
||||
It has these top-level messages:
|
||||
ExecuteRequest
|
||||
ExecuteResponse
|
||||
BackupItemActionAppliesToRequest
|
||||
BackupItemActionAppliesToResponse
|
||||
PutObjectRequest
|
||||
GetObjectRequest
|
||||
Bytes
|
||||
@@ -25,17 +27,18 @@ It has these top-level messages:
|
||||
DeleteObjectRequest
|
||||
CreateSignedURLRequest
|
||||
CreateSignedURLResponse
|
||||
ObjectStoreInitRequest
|
||||
PluginIdentifier
|
||||
ListPluginsResponse
|
||||
RestoreItemActionExecuteRequest
|
||||
RestoreItemActionExecuteResponse
|
||||
RestoreItemActionAppliesToRequest
|
||||
RestoreItemActionAppliesToResponse
|
||||
Empty
|
||||
InitRequest
|
||||
AppliesToRequest
|
||||
AppliesToResponse
|
||||
Stack
|
||||
StackFrame
|
||||
ResourceIdentifier
|
||||
ResourceSelector
|
||||
CreateVolumeRequest
|
||||
CreateVolumeResponse
|
||||
GetVolumeInfoRequest
|
||||
@@ -47,6 +50,7 @@ It has these top-level messages:
|
||||
GetVolumeIDResponse
|
||||
SetVolumeIDRequest
|
||||
SetVolumeIDResponse
|
||||
VolumeSnapshotterInitRequest
|
||||
*/
|
||||
package generated
|
||||
|
||||
@@ -126,9 +130,47 @@ func (m *ExecuteResponse) GetAdditionalItems() []*ResourceIdentifier {
|
||||
return nil
|
||||
}
|
||||
|
||||
type BackupItemActionAppliesToRequest struct {
|
||||
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
||||
}
|
||||
|
||||
func (m *BackupItemActionAppliesToRequest) Reset() { *m = BackupItemActionAppliesToRequest{} }
|
||||
func (m *BackupItemActionAppliesToRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*BackupItemActionAppliesToRequest) ProtoMessage() {}
|
||||
func (*BackupItemActionAppliesToRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor0, []int{2}
|
||||
}
|
||||
|
||||
func (m *BackupItemActionAppliesToRequest) GetPlugin() string {
|
||||
if m != nil {
|
||||
return m.Plugin
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type BackupItemActionAppliesToResponse struct {
|
||||
ResourceSelector *ResourceSelector `protobuf:"bytes,1,opt,name=ResourceSelector" json:"ResourceSelector,omitempty"`
|
||||
}
|
||||
|
||||
func (m *BackupItemActionAppliesToResponse) Reset() { *m = BackupItemActionAppliesToResponse{} }
|
||||
func (m *BackupItemActionAppliesToResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*BackupItemActionAppliesToResponse) ProtoMessage() {}
|
||||
func (*BackupItemActionAppliesToResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor0, []int{3}
|
||||
}
|
||||
|
||||
func (m *BackupItemActionAppliesToResponse) GetResourceSelector() *ResourceSelector {
|
||||
if m != nil {
|
||||
return m.ResourceSelector
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ExecuteRequest)(nil), "generated.ExecuteRequest")
|
||||
proto.RegisterType((*ExecuteResponse)(nil), "generated.ExecuteResponse")
|
||||
proto.RegisterType((*BackupItemActionAppliesToRequest)(nil), "generated.BackupItemActionAppliesToRequest")
|
||||
proto.RegisterType((*BackupItemActionAppliesToResponse)(nil), "generated.BackupItemActionAppliesToResponse")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -142,7 +184,7 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
// Client API for BackupItemAction service
|
||||
|
||||
type BackupItemActionClient interface {
|
||||
AppliesTo(ctx context.Context, in *AppliesToRequest, opts ...grpc.CallOption) (*AppliesToResponse, error)
|
||||
AppliesTo(ctx context.Context, in *BackupItemActionAppliesToRequest, opts ...grpc.CallOption) (*BackupItemActionAppliesToResponse, error)
|
||||
Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error)
|
||||
}
|
||||
|
||||
@@ -154,8 +196,8 @@ func NewBackupItemActionClient(cc *grpc.ClientConn) BackupItemActionClient {
|
||||
return &backupItemActionClient{cc}
|
||||
}
|
||||
|
||||
func (c *backupItemActionClient) AppliesTo(ctx context.Context, in *AppliesToRequest, opts ...grpc.CallOption) (*AppliesToResponse, error) {
|
||||
out := new(AppliesToResponse)
|
||||
func (c *backupItemActionClient) AppliesTo(ctx context.Context, in *BackupItemActionAppliesToRequest, opts ...grpc.CallOption) (*BackupItemActionAppliesToResponse, error) {
|
||||
out := new(BackupItemActionAppliesToResponse)
|
||||
err := grpc.Invoke(ctx, "/generated.BackupItemAction/AppliesTo", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -175,7 +217,7 @@ func (c *backupItemActionClient) Execute(ctx context.Context, in *ExecuteRequest
|
||||
// Server API for BackupItemAction service
|
||||
|
||||
type BackupItemActionServer interface {
|
||||
AppliesTo(context.Context, *AppliesToRequest) (*AppliesToResponse, error)
|
||||
AppliesTo(context.Context, *BackupItemActionAppliesToRequest) (*BackupItemActionAppliesToResponse, error)
|
||||
Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error)
|
||||
}
|
||||
|
||||
@@ -184,7 +226,7 @@ func RegisterBackupItemActionServer(s *grpc.Server, srv BackupItemActionServer)
|
||||
}
|
||||
|
||||
func _BackupItemAction_AppliesTo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AppliesToRequest)
|
||||
in := new(BackupItemActionAppliesToRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -196,7 +238,7 @@ func _BackupItemAction_AppliesTo_Handler(srv interface{}, ctx context.Context, d
|
||||
FullMethod: "/generated.BackupItemAction/AppliesTo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BackupItemActionServer).AppliesTo(ctx, req.(*AppliesToRequest))
|
||||
return srv.(BackupItemActionServer).AppliesTo(ctx, req.(*BackupItemActionAppliesToRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -239,21 +281,24 @@ var _BackupItemAction_serviceDesc = grpc.ServiceDesc{
|
||||
func init() { proto.RegisterFile("BackupItemAction.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 250 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x50, 0xcb, 0x4e, 0xc3, 0x30,
|
||||
0x10, 0x94, 0x5b, 0x54, 0x94, 0xa5, 0xa2, 0xc8, 0x87, 0x2a, 0x04, 0x90, 0xa2, 0x9e, 0x72, 0xca,
|
||||
0xa1, 0xfc, 0x00, 0x45, 0x02, 0xd4, 0xab, 0xe9, 0x0f, 0xb8, 0xf1, 0x52, 0x2c, 0x52, 0xdb, 0xf8,
|
||||
0x21, 0xf1, 0x31, 0x7c, 0x2c, 0x4a, 0x6a, 0x59, 0xa1, 0xca, 0xcd, 0xbb, 0xb3, 0x33, 0x9e, 0x19,
|
||||
0x58, 0x3e, 0xf3, 0xe6, 0x2b, 0x98, 0xad, 0xc7, 0xe3, 0xa6, 0xf1, 0x52, 0xab, 0xda, 0x58, 0xed,
|
||||
0x35, 0xcd, 0x0e, 0xa8, 0xd0, 0x72, 0x8f, 0xa2, 0x98, 0xbf, 0x7f, 0x72, 0x8b, 0xe2, 0x04, 0xac,
|
||||
0x76, 0x70, 0xfd, 0xf2, 0x83, 0x4d, 0xf0, 0xc8, 0xf0, 0x3b, 0xa0, 0xf3, 0x74, 0x09, 0x33, 0xd3,
|
||||
0x86, 0x83, 0x54, 0x39, 0x29, 0x49, 0x95, 0xb1, 0x38, 0x51, 0x0a, 0x17, 0xd2, 0xe3, 0x31, 0x9f,
|
||||
0x94, 0xa4, 0x9a, 0xb3, 0xfe, 0xdd, 0xdd, 0xee, 0xfb, 0x0f, 0xf3, 0x69, 0xbf, 0x8d, 0xd3, 0x4a,
|
||||
0xc1, 0x22, 0xa9, 0x3a, 0xa3, 0x95, 0xc3, 0x44, 0x27, 0x03, 0xfa, 0x1b, 0x2c, 0xb8, 0x10, 0xb2,
|
||||
0xf3, 0xc9, 0xdb, 0xce, 0xb3, 0xcb, 0x27, 0xe5, 0xb4, 0xba, 0x5a, 0x3f, 0xd4, 0xc9, 0x6f, 0xcd,
|
||||
0xd0, 0xe9, 0x60, 0x1b, 0xdc, 0x0a, 0x54, 0x5e, 0x7e, 0x48, 0xb4, 0xec, 0x9c, 0xb5, 0xfe, 0x25,
|
||||
0x70, 0x73, 0x9e, 0x9c, 0xbe, 0x42, 0xb6, 0x31, 0xa6, 0x95, 0xe8, 0x76, 0x9a, 0xde, 0x0d, 0x14,
|
||||
0xd3, 0x36, 0x46, 0x2e, 0xee, 0xc7, 0xc1, 0xe8, 0xfc, 0x09, 0x2e, 0x63, 0x18, 0x7a, 0x3b, 0x38,
|
||||
0xfc, 0x5f, 0x5b, 0x51, 0x8c, 0x41, 0x27, 0x85, 0xfd, 0xac, 0xef, 0xfa, 0xf1, 0x2f, 0x00, 0x00,
|
||||
0xff, 0xff, 0x3e, 0xb0, 0x7f, 0x0f, 0x9e, 0x01, 0x00, 0x00,
|
||||
// 293 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x4a, 0xc3, 0x40,
|
||||
0x10, 0x86, 0x49, 0x2b, 0x95, 0x4e, 0x8b, 0x2d, 0x7b, 0x28, 0x31, 0x22, 0xc4, 0x9c, 0x02, 0x4a,
|
||||
0x0e, 0xf1, 0xe6, 0xc9, 0x0a, 0x52, 0x7a, 0xdd, 0xf6, 0x05, 0xd2, 0x64, 0x5a, 0x17, 0xd3, 0xdd,
|
||||
0x75, 0x77, 0x03, 0x3e, 0x9c, 0x0f, 0x27, 0xd9, 0x6e, 0x43, 0x8c, 0xc5, 0x7a, 0xcb, 0x64, 0xe6,
|
||||
0xff, 0xe7, 0xfb, 0xd9, 0x81, 0xd9, 0x4b, 0x96, 0xbf, 0x57, 0x72, 0x69, 0x70, 0x3f, 0xcf, 0x0d,
|
||||
0x13, 0x3c, 0x91, 0x4a, 0x18, 0x41, 0x86, 0x3b, 0xe4, 0xa8, 0x32, 0x83, 0x45, 0x30, 0x5e, 0xbd,
|
||||
0x65, 0x0a, 0x8b, 0x43, 0x23, 0x5a, 0xc3, 0xd5, 0xeb, 0x27, 0xe6, 0x95, 0x41, 0x8a, 0x1f, 0x15,
|
||||
0x6a, 0x43, 0x66, 0x30, 0x90, 0x65, 0xb5, 0x63, 0xdc, 0xf7, 0x42, 0x2f, 0x1e, 0x52, 0x57, 0x11,
|
||||
0x02, 0x17, 0xcc, 0xe0, 0xde, 0xef, 0x85, 0x5e, 0x3c, 0xa6, 0xf6, 0xbb, 0x9e, 0xdd, 0xd8, 0x85,
|
||||
0x7e, 0xdf, 0xfe, 0x75, 0x55, 0xc4, 0x61, 0xd2, 0xb8, 0x6a, 0x29, 0xb8, 0xc6, 0x46, 0xee, 0xb5,
|
||||
0xe4, 0x0b, 0x98, 0x64, 0x45, 0xc1, 0x6a, 0xce, 0xac, 0xac, 0x99, 0xb5, 0xdf, 0x0b, 0xfb, 0xf1,
|
||||
0x28, 0xbd, 0x4d, 0x1a, 0xde, 0x84, 0xa2, 0x16, 0x95, 0xca, 0x71, 0x59, 0x20, 0x37, 0x6c, 0xcb,
|
||||
0x50, 0xd1, 0xae, 0x2a, 0x7a, 0x82, 0xb0, 0x1b, 0x7c, 0x2e, 0x65, 0xc9, 0x50, 0xaf, 0xc5, 0x99,
|
||||
0x5c, 0x51, 0x09, 0x77, 0x7f, 0x68, 0x1d, 0xfd, 0x02, 0xa6, 0x47, 0x8e, 0x15, 0x96, 0x98, 0x1b,
|
||||
0xa1, 0xac, 0xcd, 0x28, 0xbd, 0x39, 0x81, 0x7a, 0x1c, 0xa1, 0xbf, 0x44, 0xe9, 0x97, 0x07, 0xd3,
|
||||
0xee, 0x3a, 0xb2, 0x85, 0x61, 0xb3, 0x92, 0xdc, 0xb7, 0x0c, 0xcf, 0x85, 0x0a, 0x1e, 0xfe, 0x37,
|
||||
0xec, 0x52, 0x3c, 0xc3, 0xa5, 0x7b, 0x16, 0x72, 0xdd, 0x12, 0xfe, 0x3c, 0x80, 0x20, 0x38, 0xd5,
|
||||
0x3a, 0x38, 0x6c, 0x06, 0xf6, 0x6a, 0x1e, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x45, 0xdb, 0x5d,
|
||||
0x9f, 0x68, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
@@ -297,6 +297,30 @@ func (m *CreateSignedURLResponse) GetUrl() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type ObjectStoreInitRequest struct {
|
||||
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
||||
Config map[string]string `protobuf:"bytes,2,rep,name=config" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
}
|
||||
|
||||
func (m *ObjectStoreInitRequest) Reset() { *m = ObjectStoreInitRequest{} }
|
||||
func (m *ObjectStoreInitRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ObjectStoreInitRequest) ProtoMessage() {}
|
||||
func (*ObjectStoreInitRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{10} }
|
||||
|
||||
func (m *ObjectStoreInitRequest) GetPlugin() string {
|
||||
if m != nil {
|
||||
return m.Plugin
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ObjectStoreInitRequest) GetConfig() map[string]string {
|
||||
if m != nil {
|
||||
return m.Config
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PutObjectRequest)(nil), "generated.PutObjectRequest")
|
||||
proto.RegisterType((*GetObjectRequest)(nil), "generated.GetObjectRequest")
|
||||
@@ -308,6 +332,7 @@ func init() {
|
||||
proto.RegisterType((*DeleteObjectRequest)(nil), "generated.DeleteObjectRequest")
|
||||
proto.RegisterType((*CreateSignedURLRequest)(nil), "generated.CreateSignedURLRequest")
|
||||
proto.RegisterType((*CreateSignedURLResponse)(nil), "generated.CreateSignedURLResponse")
|
||||
proto.RegisterType((*ObjectStoreInitRequest)(nil), "generated.ObjectStoreInitRequest")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -321,7 +346,7 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
// Client API for ObjectStore service
|
||||
|
||||
type ObjectStoreClient interface {
|
||||
Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*Empty, error)
|
||||
Init(ctx context.Context, in *ObjectStoreInitRequest, opts ...grpc.CallOption) (*Empty, error)
|
||||
PutObject(ctx context.Context, opts ...grpc.CallOption) (ObjectStore_PutObjectClient, error)
|
||||
GetObject(ctx context.Context, in *GetObjectRequest, opts ...grpc.CallOption) (ObjectStore_GetObjectClient, error)
|
||||
ListCommonPrefixes(ctx context.Context, in *ListCommonPrefixesRequest, opts ...grpc.CallOption) (*ListCommonPrefixesResponse, error)
|
||||
@@ -338,7 +363,7 @@ func NewObjectStoreClient(cc *grpc.ClientConn) ObjectStoreClient {
|
||||
return &objectStoreClient{cc}
|
||||
}
|
||||
|
||||
func (c *objectStoreClient) Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*Empty, error) {
|
||||
func (c *objectStoreClient) Init(ctx context.Context, in *ObjectStoreInitRequest, opts ...grpc.CallOption) (*Empty, error) {
|
||||
out := new(Empty)
|
||||
err := grpc.Invoke(ctx, "/generated.ObjectStore/Init", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
@@ -452,7 +477,7 @@ func (c *objectStoreClient) CreateSignedURL(ctx context.Context, in *CreateSigne
|
||||
// Server API for ObjectStore service
|
||||
|
||||
type ObjectStoreServer interface {
|
||||
Init(context.Context, *InitRequest) (*Empty, error)
|
||||
Init(context.Context, *ObjectStoreInitRequest) (*Empty, error)
|
||||
PutObject(ObjectStore_PutObjectServer) error
|
||||
GetObject(*GetObjectRequest, ObjectStore_GetObjectServer) error
|
||||
ListCommonPrefixes(context.Context, *ListCommonPrefixesRequest) (*ListCommonPrefixesResponse, error)
|
||||
@@ -466,7 +491,7 @@ func RegisterObjectStoreServer(s *grpc.Server, srv ObjectStoreServer) {
|
||||
}
|
||||
|
||||
func _ObjectStore_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(InitRequest)
|
||||
in := new(ObjectStoreInitRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -478,7 +503,7 @@ func _ObjectStore_Init_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
FullMethod: "/generated.ObjectStore/Init",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ObjectStoreServer).Init(ctx, req.(*InitRequest))
|
||||
return srv.(ObjectStoreServer).Init(ctx, req.(*ObjectStoreInitRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -645,35 +670,39 @@ var _ObjectStore_serviceDesc = grpc.ServiceDesc{
|
||||
func init() { proto.RegisterFile("ObjectStore.proto", fileDescriptor1) }
|
||||
|
||||
var fileDescriptor1 = []byte{
|
||||
// 468 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x51, 0x8b, 0xd3, 0x40,
|
||||
0x10, 0x26, 0x26, 0x1e, 0x66, 0xae, 0x60, 0x9c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, 0x7a, 0xed, 0x96, 0x1e, 0x7a, 0xd3, 0x43, 0x3d, 0xb4, 0xb6, 0xc2,
|
||||
0x91, 0x83, 0x49, 0x27, 0x9d, 0xbe, 0xe8, 0xf0, 0xb1, 0xd5, 0x79, 0xa9, 0x2d, 0xa2, 0x27, 0x57,
|
||||
0x74, 0x99, 0x2b, 0x9b, 0xc2, 0xbe, 0xa5, 0x1f, 0x7c, 0xb0, 0x81, 0xea, 0xab, 0x36, 0x7a, 0x78,
|
||||
0xd9, 0xb1, 0x99, 0xf6, 0x1a, 0x06, 0xb6, 0xc4, 0xd0, 0xee, 0xdf, 0xa2, 0xbd, 0x2d, 0xd7, 0xfd,
|
||||
0x15, 0x6e, 0x6f, 0xbc, 0x2e, 0x3e, 0xb2, 0x9a, 0xb6, 0xeb, 0x2c, 0x12, 0xff, 0x6b, 0xe9, 0xb8,
|
||||
0xcd, 0xf7, 0xf4, 0x9f, 0xf2, 0xc5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x54, 0xac, 0xfe, 0xa7,
|
||||
0x57, 0x05, 0x00, 0x00,
|
||||
// 531 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x5f, 0x8b, 0xd3, 0x40,
|
||||
0x10, 0x67, 0x9b, 0x5c, 0x31, 0xd3, 0x82, 0x71, 0x4f, 0x6a, 0xcc, 0xa9, 0xd4, 0x45, 0x21, 0x22,
|
||||
0x16, 0x39, 0x5f, 0xce, 0x3f, 0x0f, 0x62, 0x2d, 0x22, 0x14, 0x3c, 0x52, 0x45, 0x1f, 0x7c, 0x49,
|
||||
0x9b, 0xb9, 0x5e, 0x6c, 0x9a, 0xc4, 0x64, 0x23, 0xe6, 0xd1, 0xcf, 0xe0, 0x37, 0xf1, 0x13, 0x4a,
|
||||
0x36, 0x7b, 0xed, 0xa6, 0x97, 0xbb, 0x42, 0xe9, 0xdb, 0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x37, 0x60, 0xac, 0x36, 0x03, 0x3d, 0x52, 0x8e, 0x37, 0xf7, 0xc5,
|
||||
0xe5, 0x5a, 0x87, 0x94, 0xd5, 0x2b, 0xb5, 0xd7, 0xaa, 0x37, 0x77, 0x40, 0xad, 0x5a, 0x48, 0xf9,
|
||||
0x39, 0xa1, 0x5e, 0xf5, 0xf5, 0xeb, 0xa2, 0xa1, 0x8f, 0x94, 0xcc, 0x2b, 0x65, 0x6d, 0x3f, 0xde,
|
||||
0x92, 0x25, 0x9f, 0x7c, 0x0c, 0x1d, 0xe5, 0xff, 0xd3, 0xfb, 0x1b, 0x55, 0x75, 0xd5, 0xd9, 0x0f,
|
||||
0xae, 0x3a, 0x96, 0xdd, 0xde, 0x42, 0x57, 0x95, 0x08, 0x55, 0xf3, 0x1b, 0xb4, 0xd3, 0x70, 0xdd,
|
||||
0xdf, 0xe0, 0xe6, 0xc6, 0xef, 0xac, 0x3d, 0x5b, 0xb3, 0x4e, 0x6c, 0x76, 0x5d, 0x4a, 0xc5, 0x6d,
|
||||
0xda, 0x16, 0x9b, 0xfe, 0xc5, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x73, 0xe9, 0xf8, 0x17,
|
||||
0x06, 0x00, 0x00,
|
||||
}
|
||||
|
||||
@@ -91,9 +91,47 @@ func (m *RestoreItemActionExecuteResponse) GetSkipRestore() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
type RestoreItemActionAppliesToRequest struct {
|
||||
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
||||
}
|
||||
|
||||
func (m *RestoreItemActionAppliesToRequest) Reset() { *m = RestoreItemActionAppliesToRequest{} }
|
||||
func (m *RestoreItemActionAppliesToRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*RestoreItemActionAppliesToRequest) ProtoMessage() {}
|
||||
func (*RestoreItemActionAppliesToRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor3, []int{2}
|
||||
}
|
||||
|
||||
func (m *RestoreItemActionAppliesToRequest) GetPlugin() string {
|
||||
if m != nil {
|
||||
return m.Plugin
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type RestoreItemActionAppliesToResponse struct {
|
||||
ResourceSelector *ResourceSelector `protobuf:"bytes,1,opt,name=ResourceSelector" json:"ResourceSelector,omitempty"`
|
||||
}
|
||||
|
||||
func (m *RestoreItemActionAppliesToResponse) Reset() { *m = RestoreItemActionAppliesToResponse{} }
|
||||
func (m *RestoreItemActionAppliesToResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*RestoreItemActionAppliesToResponse) ProtoMessage() {}
|
||||
func (*RestoreItemActionAppliesToResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor3, []int{3}
|
||||
}
|
||||
|
||||
func (m *RestoreItemActionAppliesToResponse) GetResourceSelector() *ResourceSelector {
|
||||
if m != nil {
|
||||
return m.ResourceSelector
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*RestoreItemActionExecuteRequest)(nil), "generated.RestoreItemActionExecuteRequest")
|
||||
proto.RegisterType((*RestoreItemActionExecuteResponse)(nil), "generated.RestoreItemActionExecuteResponse")
|
||||
proto.RegisterType((*RestoreItemActionAppliesToRequest)(nil), "generated.RestoreItemActionAppliesToRequest")
|
||||
proto.RegisterType((*RestoreItemActionAppliesToResponse)(nil), "generated.RestoreItemActionAppliesToResponse")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -107,7 +145,7 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
// Client API for RestoreItemAction service
|
||||
|
||||
type RestoreItemActionClient interface {
|
||||
AppliesTo(ctx context.Context, in *AppliesToRequest, opts ...grpc.CallOption) (*AppliesToResponse, error)
|
||||
AppliesTo(ctx context.Context, in *RestoreItemActionAppliesToRequest, opts ...grpc.CallOption) (*RestoreItemActionAppliesToResponse, error)
|
||||
Execute(ctx context.Context, in *RestoreItemActionExecuteRequest, opts ...grpc.CallOption) (*RestoreItemActionExecuteResponse, error)
|
||||
}
|
||||
|
||||
@@ -119,8 +157,8 @@ func NewRestoreItemActionClient(cc *grpc.ClientConn) RestoreItemActionClient {
|
||||
return &restoreItemActionClient{cc}
|
||||
}
|
||||
|
||||
func (c *restoreItemActionClient) AppliesTo(ctx context.Context, in *AppliesToRequest, opts ...grpc.CallOption) (*AppliesToResponse, error) {
|
||||
out := new(AppliesToResponse)
|
||||
func (c *restoreItemActionClient) AppliesTo(ctx context.Context, in *RestoreItemActionAppliesToRequest, opts ...grpc.CallOption) (*RestoreItemActionAppliesToResponse, error) {
|
||||
out := new(RestoreItemActionAppliesToResponse)
|
||||
err := grpc.Invoke(ctx, "/generated.RestoreItemAction/AppliesTo", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -140,7 +178,7 @@ func (c *restoreItemActionClient) Execute(ctx context.Context, in *RestoreItemAc
|
||||
// Server API for RestoreItemAction service
|
||||
|
||||
type RestoreItemActionServer interface {
|
||||
AppliesTo(context.Context, *AppliesToRequest) (*AppliesToResponse, error)
|
||||
AppliesTo(context.Context, *RestoreItemActionAppliesToRequest) (*RestoreItemActionAppliesToResponse, error)
|
||||
Execute(context.Context, *RestoreItemActionExecuteRequest) (*RestoreItemActionExecuteResponse, error)
|
||||
}
|
||||
|
||||
@@ -149,7 +187,7 @@ func RegisterRestoreItemActionServer(s *grpc.Server, srv RestoreItemActionServer
|
||||
}
|
||||
|
||||
func _RestoreItemAction_AppliesTo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AppliesToRequest)
|
||||
in := new(RestoreItemActionAppliesToRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -161,7 +199,7 @@ func _RestoreItemAction_AppliesTo_Handler(srv interface{}, ctx context.Context,
|
||||
FullMethod: "/generated.RestoreItemAction/AppliesTo",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RestoreItemActionServer).AppliesTo(ctx, req.(*AppliesToRequest))
|
||||
return srv.(RestoreItemActionServer).AppliesTo(ctx, req.(*RestoreItemActionAppliesToRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -204,24 +242,25 @@ var _RestoreItemAction_serviceDesc = grpc.ServiceDesc{
|
||||
func init() { proto.RegisterFile("RestoreItemAction.proto", fileDescriptor3) }
|
||||
|
||||
var fileDescriptor3 = []byte{
|
||||
// 293 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x51, 0x5b, 0x4a, 0xc3, 0x40,
|
||||
0x14, 0x65, 0xda, 0xd2, 0x9a, 0xdb, 0xa2, 0x38, 0x1f, 0x3a, 0x44, 0xc5, 0xd0, 0x0f, 0x09, 0x0a,
|
||||
0xf9, 0xa8, 0x2b, 0xa8, 0x60, 0xa5, 0xbf, 0xa3, 0x1b, 0x48, 0x93, 0x6b, 0x1d, 0x9a, 0x64, 0xc6,
|
||||
0x79, 0x80, 0xbb, 0x70, 0x0d, 0xae, 0xc4, 0xad, 0x49, 0x1e, 0x86, 0xd8, 0xaa, 0xf4, 0x2f, 0xf7,
|
||||
0xdc, 0x73, 0x72, 0xce, 0x99, 0x0b, 0xa7, 0x1c, 0x8d, 0x95, 0x1a, 0x97, 0x16, 0xf3, 0x79, 0x62,
|
||||
0x85, 0x2c, 0x22, 0xa5, 0xa5, 0x95, 0xd4, 0x5b, 0x63, 0x81, 0x3a, 0xb6, 0x98, 0xfa, 0x93, 0xc7,
|
||||
0x97, 0x58, 0x63, 0x5a, 0x2f, 0xa6, 0xef, 0x04, 0x2e, 0x77, 0x44, 0xf7, 0x6f, 0x98, 0x38, 0x8b,
|
||||
0x1c, 0x5f, 0x1d, 0x1a, 0x4b, 0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0x00,
|
||||
// 319 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xcd, 0x4e, 0xf3, 0x30,
|
||||
0x10, 0x94, 0xdb, 0xaa, 0x55, 0xb7, 0xd5, 0xf7, 0x81, 0x0f, 0x60, 0x15, 0x21, 0x42, 0x0e, 0xa8,
|
||||
0xe2, 0xa7, 0x87, 0x72, 0xe4, 0x54, 0x24, 0xa8, 0x7a, 0x75, 0x79, 0x81, 0x34, 0x59, 0x5a, 0x8b,
|
||||
0x24, 0x36, 0xb6, 0x23, 0x71, 0xe3, 0x11, 0x78, 0x46, 0xde, 0x04, 0xe5, 0x57, 0xb4, 0x81, 0xd0,
|
||||
0x9b, 0x77, 0x3d, 0xb3, 0x33, 0x63, 0x2f, 0x1c, 0x73, 0x34, 0x56, 0x6a, 0x5c, 0x58, 0x8c, 0x66,
|
||||
0xbe, 0x15, 0x32, 0x9e, 0x28, 0x2d, 0xad, 0xa4, 0xfd, 0x35, 0xc6, 0xa8, 0x3d, 0x8b, 0xc1, 0x68,
|
||||
0xb8, 0xdc, 0x78, 0x1a, 0x83, 0xfc, 0xc2, 0xfd, 0x20, 0x70, 0x56, 0x23, 0x3d, 0xbc, 0xa1, 0x9f,
|
||||
0x58, 0xe4, 0xf8, 0x9a, 0xa0, 0xb1, 0xf4, 0x08, 0xba, 0x2a, 0x4c, 0xd6, 0x22, 0x66, 0xc4, 0x21,
|
||||
0xe3, 0x3e, 0x2f, 0x2a, 0x4a, 0xa1, 0x23, 0x2c, 0x46, 0xac, 0xe5, 0x90, 0xf1, 0x90, 0x67, 0x67,
|
||||
0xca, 0xa0, 0xa7, 0xf3, 0x71, 0xac, 0x9d, 0xb5, 0xcb, 0x92, 0x5e, 0xc0, 0xbf, 0x14, 0xf1, 0xa8,
|
||||
0x65, 0x74, 0xef, 0xf9, 0x2f, 0x89, 0x62, 0x9d, 0x0c, 0xb0, 0xd3, 0x75, 0xdf, 0xc1, 0xf9, 0xdd,
|
||||
0x90, 0x51, 0x32, 0x36, 0x58, 0x29, 0x93, 0x6f, 0xca, 0x73, 0xf8, 0xef, 0x05, 0x81, 0x48, 0xe1,
|
||||
0x5e, 0x98, 0x52, 0x0d, 0x6b, 0x39, 0xed, 0xf1, 0x60, 0x7a, 0x3a, 0xa9, 0xc2, 0x4f, 0x38, 0x1a,
|
||||
0x99, 0x68, 0x1f, 0x17, 0x01, 0xc6, 0x56, 0x3c, 0x0b, 0xd4, 0x7c, 0x97, 0xe5, 0xde, 0xc1, 0x79,
|
||||
0xcd, 0xc0, 0x4c, 0xa9, 0x50, 0xa0, 0x79, 0x92, 0x7f, 0xbc, 0x89, 0x1b, 0x81, 0xdb, 0x44, 0x2e,
|
||||
0xfc, 0xcf, 0xe1, 0xa0, 0x74, 0xb2, 0xc4, 0x10, 0x7d, 0x2b, 0x75, 0x36, 0x67, 0x30, 0x3d, 0xf9,
|
||||
0xc1, 0x6c, 0x09, 0xe1, 0x35, 0xd2, 0xf4, 0x93, 0xc0, 0x61, 0x4d, 0x8f, 0x6e, 0xa0, 0x5f, 0x69,
|
||||
0xd2, 0xeb, 0xed, 0x89, 0xcd, 0xb9, 0x46, 0x37, 0x7b, 0xa2, 0x8b, 0x20, 0x2b, 0xe8, 0x15, 0x7f,
|
||||
0x43, 0x2f, 0x9b, 0x98, 0xdb, 0x1b, 0x35, 0xba, 0xda, 0x0b, 0x9b, 0x6b, 0xac, 0xba, 0xd9, 0xa6,
|
||||
0xde, 0x7e, 0x05, 0x00, 0x00, 0xff, 0xff, 0x96, 0x3a, 0x66, 0xfa, 0xdd, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
@@ -20,94 +20,6 @@ func (m *Empty) String() string { return proto.CompactTextString(m) }
|
||||
func (*Empty) ProtoMessage() {}
|
||||
func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
|
||||
|
||||
type InitRequest struct {
|
||||
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
||||
Config map[string]string `protobuf:"bytes,2,rep,name=config" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
}
|
||||
|
||||
func (m *InitRequest) Reset() { *m = InitRequest{} }
|
||||
func (m *InitRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*InitRequest) ProtoMessage() {}
|
||||
func (*InitRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
|
||||
|
||||
func (m *InitRequest) GetPlugin() string {
|
||||
if m != nil {
|
||||
return m.Plugin
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *InitRequest) GetConfig() map[string]string {
|
||||
if m != nil {
|
||||
return m.Config
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type AppliesToRequest struct {
|
||||
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
||||
}
|
||||
|
||||
func (m *AppliesToRequest) Reset() { *m = AppliesToRequest{} }
|
||||
func (m *AppliesToRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*AppliesToRequest) ProtoMessage() {}
|
||||
func (*AppliesToRequest) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} }
|
||||
|
||||
func (m *AppliesToRequest) GetPlugin() string {
|
||||
if m != nil {
|
||||
return m.Plugin
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type AppliesToResponse struct {
|
||||
IncludedNamespaces []string `protobuf:"bytes,1,rep,name=includedNamespaces" json:"includedNamespaces,omitempty"`
|
||||
ExcludedNamespaces []string `protobuf:"bytes,2,rep,name=excludedNamespaces" json:"excludedNamespaces,omitempty"`
|
||||
IncludedResources []string `protobuf:"bytes,3,rep,name=includedResources" json:"includedResources,omitempty"`
|
||||
ExcludedResources []string `protobuf:"bytes,4,rep,name=excludedResources" json:"excludedResources,omitempty"`
|
||||
Selector string `protobuf:"bytes,5,opt,name=selector" json:"selector,omitempty"`
|
||||
}
|
||||
|
||||
func (m *AppliesToResponse) Reset() { *m = AppliesToResponse{} }
|
||||
func (m *AppliesToResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*AppliesToResponse) ProtoMessage() {}
|
||||
func (*AppliesToResponse) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} }
|
||||
|
||||
func (m *AppliesToResponse) GetIncludedNamespaces() []string {
|
||||
if m != nil {
|
||||
return m.IncludedNamespaces
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppliesToResponse) GetExcludedNamespaces() []string {
|
||||
if m != nil {
|
||||
return m.ExcludedNamespaces
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppliesToResponse) GetIncludedResources() []string {
|
||||
if m != nil {
|
||||
return m.IncludedResources
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppliesToResponse) GetExcludedResources() []string {
|
||||
if m != nil {
|
||||
return m.ExcludedResources
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *AppliesToResponse) GetSelector() string {
|
||||
if m != nil {
|
||||
return m.Selector
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type Stack struct {
|
||||
Frames []*StackFrame `protobuf:"bytes,1,rep,name=frames" json:"frames,omitempty"`
|
||||
}
|
||||
@@ -115,7 +27,7 @@ type Stack struct {
|
||||
func (m *Stack) Reset() { *m = Stack{} }
|
||||
func (m *Stack) String() string { return proto.CompactTextString(m) }
|
||||
func (*Stack) ProtoMessage() {}
|
||||
func (*Stack) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{4} }
|
||||
func (*Stack) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
|
||||
|
||||
func (m *Stack) GetFrames() []*StackFrame {
|
||||
if m != nil {
|
||||
@@ -133,7 +45,7 @@ type StackFrame struct {
|
||||
func (m *StackFrame) Reset() { *m = StackFrame{} }
|
||||
func (m *StackFrame) String() string { return proto.CompactTextString(m) }
|
||||
func (*StackFrame) ProtoMessage() {}
|
||||
func (*StackFrame) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{5} }
|
||||
func (*StackFrame) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} }
|
||||
|
||||
func (m *StackFrame) GetFile() string {
|
||||
if m != nil {
|
||||
@@ -166,7 +78,7 @@ type ResourceIdentifier struct {
|
||||
func (m *ResourceIdentifier) Reset() { *m = ResourceIdentifier{} }
|
||||
func (m *ResourceIdentifier) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResourceIdentifier) ProtoMessage() {}
|
||||
func (*ResourceIdentifier) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{6} }
|
||||
func (*ResourceIdentifier) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} }
|
||||
|
||||
func (m *ResourceIdentifier) GetGroup() string {
|
||||
if m != nil {
|
||||
@@ -196,43 +108,83 @@ func (m *ResourceIdentifier) GetName() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
type ResourceSelector struct {
|
||||
IncludedNamespaces []string `protobuf:"bytes,1,rep,name=includedNamespaces" json:"includedNamespaces,omitempty"`
|
||||
ExcludedNamespaces []string `protobuf:"bytes,2,rep,name=excludedNamespaces" json:"excludedNamespaces,omitempty"`
|
||||
IncludedResources []string `protobuf:"bytes,3,rep,name=includedResources" json:"includedResources,omitempty"`
|
||||
ExcludedResources []string `protobuf:"bytes,4,rep,name=excludedResources" json:"excludedResources,omitempty"`
|
||||
Selector string `protobuf:"bytes,5,opt,name=selector" json:"selector,omitempty"`
|
||||
}
|
||||
|
||||
func (m *ResourceSelector) Reset() { *m = ResourceSelector{} }
|
||||
func (m *ResourceSelector) String() string { return proto.CompactTextString(m) }
|
||||
func (*ResourceSelector) ProtoMessage() {}
|
||||
func (*ResourceSelector) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{4} }
|
||||
|
||||
func (m *ResourceSelector) GetIncludedNamespaces() []string {
|
||||
if m != nil {
|
||||
return m.IncludedNamespaces
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ResourceSelector) GetExcludedNamespaces() []string {
|
||||
if m != nil {
|
||||
return m.ExcludedNamespaces
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ResourceSelector) GetIncludedResources() []string {
|
||||
if m != nil {
|
||||
return m.IncludedResources
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ResourceSelector) GetExcludedResources() []string {
|
||||
if m != nil {
|
||||
return m.ExcludedResources
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ResourceSelector) GetSelector() string {
|
||||
if m != nil {
|
||||
return m.Selector
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Empty)(nil), "generated.Empty")
|
||||
proto.RegisterType((*InitRequest)(nil), "generated.InitRequest")
|
||||
proto.RegisterType((*AppliesToRequest)(nil), "generated.AppliesToRequest")
|
||||
proto.RegisterType((*AppliesToResponse)(nil), "generated.AppliesToResponse")
|
||||
proto.RegisterType((*Stack)(nil), "generated.Stack")
|
||||
proto.RegisterType((*StackFrame)(nil), "generated.StackFrame")
|
||||
proto.RegisterType((*ResourceIdentifier)(nil), "generated.ResourceIdentifier")
|
||||
proto.RegisterType((*ResourceSelector)(nil), "generated.ResourceSelector")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("Shared.proto", fileDescriptor4) }
|
||||
|
||||
var fileDescriptor4 = []byte{
|
||||
// 392 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0xaa, 0xd4, 0x30,
|
||||
0x14, 0x86, 0x69, 0x3b, 0xad, 0xf6, 0xd4, 0xc5, 0xbd, 0x41, 0xa5, 0x5c, 0x5c, 0x0c, 0x59, 0x0d,
|
||||
0xa2, 0x5d, 0x5c, 0x41, 0xf4, 0xee, 0x44, 0x46, 0x98, 0x8d, 0x48, 0xc7, 0x17, 0xa8, 0xed, 0x69,
|
||||
0x0d, 0xd3, 0x49, 0x62, 0x92, 0xca, 0xcc, 0xbb, 0xf8, 0x86, 0xbe, 0x84, 0x24, 0x4d, 0x67, 0x0a,
|
||||
0x15, 0xee, 0xee, 0xfc, 0xe7, 0x7c, 0xf9, 0xfb, 0x27, 0xa7, 0xf0, 0x6c, 0xff, 0xb3, 0x52, 0xd8,
|
||||
0x14, 0x52, 0x09, 0x23, 0x48, 0xda, 0x21, 0x47, 0x55, 0x19, 0x6c, 0xe8, 0x13, 0x88, 0xb7, 0x47,
|
||||
0x69, 0xce, 0xf4, 0x4f, 0x00, 0xd9, 0x8e, 0x33, 0x53, 0xe2, 0xaf, 0x01, 0xb5, 0x21, 0x2f, 0x21,
|
||||
0x91, 0xfd, 0xd0, 0x31, 0x9e, 0x07, 0xeb, 0x60, 0x93, 0x96, 0x5e, 0x91, 0x07, 0x48, 0x6a, 0xc1,
|
||||
0x5b, 0xd6, 0xe5, 0xe1, 0x3a, 0xda, 0x64, 0xf7, 0xb4, 0xb8, 0x98, 0x15, 0xb3, 0xf3, 0xc5, 0x67,
|
||||
0x07, 0x6d, 0xb9, 0x51, 0xe7, 0xd2, 0x9f, 0xb8, 0xfb, 0x08, 0xd9, 0xac, 0x4d, 0x6e, 0x20, 0x3a,
|
||||
0xe0, 0xd9, 0xfb, 0xdb, 0x92, 0x3c, 0x87, 0xf8, 0x77, 0xd5, 0x0f, 0x98, 0x87, 0xae, 0x37, 0x8a,
|
||||
0x87, 0xf0, 0x43, 0x40, 0x5f, 0xc3, 0xcd, 0x27, 0x29, 0x7b, 0x86, 0xfa, 0xbb, 0x78, 0x24, 0x22,
|
||||
0xfd, 0x1b, 0xc0, 0xed, 0x0c, 0xd6, 0x52, 0x70, 0x8d, 0xa4, 0x00, 0xc2, 0x78, 0xdd, 0x0f, 0x0d,
|
||||
0x36, 0x5f, 0xab, 0x23, 0x6a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 0x0c, 0xe7, 0x02, 0x00, 0x00,
|
||||
// 294 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0xc1, 0x4e, 0xb5, 0x30,
|
||||
0x10, 0x85, 0xc3, 0x05, 0xee, 0xff, 0x33, 0xba, 0xd0, 0x46, 0x93, 0xc6, 0xb8, 0x20, 0xac, 0x58,
|
||||
0x28, 0x0b, 0x4d, 0x7c, 0x03, 0x4d, 0xdc, 0x18, 0x53, 0x9e, 0x00, 0xcb, 0x70, 0x6d, 0xe4, 0xb6,
|
||||
0xa4, 0x94, 0xe4, 0xfa, 0xca, 0x3e, 0x85, 0x69, 0x4b, 0x61, 0x81, 0xbb, 0x39, 0x73, 0x3e, 0xce,
|
||||
0x0c, 0x93, 0xc2, 0x79, 0xfd, 0xd9, 0x68, 0x6c, 0xab, 0x41, 0x2b, 0xa3, 0x48, 0x76, 0x40, 0x89,
|
||||
0xba, 0x31, 0xd8, 0x16, 0xff, 0x20, 0x7d, 0x3e, 0x0e, 0xe6, 0xbb, 0x78, 0x82, 0xb4, 0x36, 0x0d,
|
||||
0xff, 0x22, 0xf7, 0xb0, 0xef, 0x74, 0x73, 0xc4, 0x91, 0x46, 0x79, 0x5c, 0x9e, 0x3d, 0x5c, 0x57,
|
||||
0x0b, 0x5d, 0x39, 0xe2, 0xc5, 0xba, 0x6c, 0x86, 0x8a, 0x77, 0x80, 0xb5, 0x4b, 0x08, 0x24, 0x9d,
|
||||
0xe8, 0x91, 0x46, 0x79, 0x54, 0x66, 0xcc, 0xd5, 0xb6, 0xd7, 0x0b, 0x89, 0x74, 0x97, 0x47, 0x65,
|
||||
0xca, 0x5c, 0x4d, 0x6e, 0xe0, 0x7f, 0x37, 0x49, 0x6e, 0x84, 0x92, 0x34, 0x76, 0xec, 0xa2, 0x8b,
|
||||
0x13, 0x10, 0x86, 0xa3, 0x9a, 0x34, 0xc7, 0xd7, 0x16, 0xa5, 0x11, 0x9d, 0x40, 0x4d, 0xae, 0x20,
|
||||
0x3d, 0x68, 0x35, 0x0d, 0x73, 0xb4, 0x17, 0x36, 0x47, 0xcf, 0xac, 0xcb, 0xcf, 0xd8, 0xa2, 0xc9,
|
||||
0x2d, 0x64, 0xd2, 0xae, 0x38, 0x34, 0x1c, 0xe7, 0x21, 0x6b, 0xc3, 0x6e, 0x65, 0x05, 0x4d, 0xfc,
|
||||
0xa6, 0xb6, 0x2e, 0x7e, 0x22, 0xb8, 0x08, 0xa3, 0x6b, 0xec, 0x91, 0x1b, 0xa5, 0x49, 0x05, 0x44,
|
||||
0x48, 0xde, 0x4f, 0x2d, 0xb6, 0x6f, 0xe1, 0x6b, 0x7f, 0x9b, 0x8c, 0xfd, 0xe1, 0x58, 0x1e, 0x4f,
|
||||
0x1b, 0x7e, 0xe7, 0xf9, 0xad, 0x43, 0xee, 0xe0, 0x32, 0xa4, 0x84, 0xd9, 0x23, 0x8d, 0x1d, 0xbe,
|
||||
0x35, 0x2c, 0x1d, 0x32, 0x56, 0x3a, 0xf1, 0xf4, 0xc6, 0xb0, 0xe7, 0x19, 0xe7, 0xff, 0xa0, 0xa9,
|
||||
0x3f, 0x4f, 0xd0, 0x1f, 0x7b, 0xf7, 0x16, 0x1e, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x83,
|
||||
0xa1, 0x97, 0x1b, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
||||
@@ -305,6 +305,30 @@ func (m *SetVolumeIDResponse) GetPersistentVolume() []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
type VolumeSnapshotterInitRequest struct {
|
||||
Plugin string `protobuf:"bytes,1,opt,name=plugin" json:"plugin,omitempty"`
|
||||
Config map[string]string `protobuf:"bytes,2,rep,name=config" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
}
|
||||
|
||||
func (m *VolumeSnapshotterInitRequest) Reset() { *m = VolumeSnapshotterInitRequest{} }
|
||||
func (m *VolumeSnapshotterInitRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*VolumeSnapshotterInitRequest) ProtoMessage() {}
|
||||
func (*VolumeSnapshotterInitRequest) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{11} }
|
||||
|
||||
func (m *VolumeSnapshotterInitRequest) GetPlugin() string {
|
||||
if m != nil {
|
||||
return m.Plugin
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VolumeSnapshotterInitRequest) GetConfig() map[string]string {
|
||||
if m != nil {
|
||||
return m.Config
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*CreateVolumeRequest)(nil), "generated.CreateVolumeRequest")
|
||||
proto.RegisterType((*CreateVolumeResponse)(nil), "generated.CreateVolumeResponse")
|
||||
@@ -317,6 +341,7 @@ func init() {
|
||||
proto.RegisterType((*GetVolumeIDResponse)(nil), "generated.GetVolumeIDResponse")
|
||||
proto.RegisterType((*SetVolumeIDRequest)(nil), "generated.SetVolumeIDRequest")
|
||||
proto.RegisterType((*SetVolumeIDResponse)(nil), "generated.SetVolumeIDResponse")
|
||||
proto.RegisterType((*VolumeSnapshotterInitRequest)(nil), "generated.VolumeSnapshotterInitRequest")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
@@ -330,7 +355,7 @@ const _ = grpc.SupportPackageIsVersion4
|
||||
// Client API for VolumeSnapshotter service
|
||||
|
||||
type VolumeSnapshotterClient interface {
|
||||
Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*Empty, error)
|
||||
Init(ctx context.Context, in *VolumeSnapshotterInitRequest, opts ...grpc.CallOption) (*Empty, error)
|
||||
CreateVolumeFromSnapshot(ctx context.Context, in *CreateVolumeRequest, opts ...grpc.CallOption) (*CreateVolumeResponse, error)
|
||||
GetVolumeInfo(ctx context.Context, in *GetVolumeInfoRequest, opts ...grpc.CallOption) (*GetVolumeInfoResponse, error)
|
||||
CreateSnapshot(ctx context.Context, in *CreateSnapshotRequest, opts ...grpc.CallOption) (*CreateSnapshotResponse, error)
|
||||
@@ -347,7 +372,7 @@ func NewVolumeSnapshotterClient(cc *grpc.ClientConn) VolumeSnapshotterClient {
|
||||
return &volumeSnapshotterClient{cc}
|
||||
}
|
||||
|
||||
func (c *volumeSnapshotterClient) Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*Empty, error) {
|
||||
func (c *volumeSnapshotterClient) Init(ctx context.Context, in *VolumeSnapshotterInitRequest, opts ...grpc.CallOption) (*Empty, error) {
|
||||
out := new(Empty)
|
||||
err := grpc.Invoke(ctx, "/generated.VolumeSnapshotter/Init", in, out, c.cc, opts...)
|
||||
if err != nil {
|
||||
@@ -413,7 +438,7 @@ func (c *volumeSnapshotterClient) SetVolumeID(ctx context.Context, in *SetVolume
|
||||
// Server API for VolumeSnapshotter service
|
||||
|
||||
type VolumeSnapshotterServer interface {
|
||||
Init(context.Context, *InitRequest) (*Empty, error)
|
||||
Init(context.Context, *VolumeSnapshotterInitRequest) (*Empty, error)
|
||||
CreateVolumeFromSnapshot(context.Context, *CreateVolumeRequest) (*CreateVolumeResponse, error)
|
||||
GetVolumeInfo(context.Context, *GetVolumeInfoRequest) (*GetVolumeInfoResponse, error)
|
||||
CreateSnapshot(context.Context, *CreateSnapshotRequest) (*CreateSnapshotResponse, error)
|
||||
@@ -427,7 +452,7 @@ func RegisterVolumeSnapshotterServer(s *grpc.Server, srv VolumeSnapshotterServer
|
||||
}
|
||||
|
||||
func _VolumeSnapshotter_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(InitRequest)
|
||||
in := new(VolumeSnapshotterInitRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -439,7 +464,7 @@ func _VolumeSnapshotter_Init_Handler(srv interface{}, ctx context.Context, dec f
|
||||
FullMethod: "/generated.VolumeSnapshotter/Init",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(VolumeSnapshotterServer).Init(ctx, req.(*InitRequest))
|
||||
return srv.(VolumeSnapshotterServer).Init(ctx, req.(*VolumeSnapshotterInitRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -592,38 +617,41 @@ var _VolumeSnapshotter_serviceDesc = grpc.ServiceDesc{
|
||||
func init() { proto.RegisterFile("VolumeSnapshotter.proto", fileDescriptor5) }
|
||||
|
||||
var fileDescriptor5 = []byte{
|
||||
// 525 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x6e, 0xd3, 0x40,
|
||||
0x10, 0xd6, 0xc6, 0x6e, 0x45, 0x26, 0xa5, 0x0a, 0x93, 0x1f, 0x2c, 0x4b, 0x04, 0xe3, 0x53, 0xd4,
|
||||
0x43, 0x04, 0xe1, 0x40, 0xc5, 0x01, 0xa9, 0xc2, 0x05, 0x45, 0x54, 0x42, 0xb2, 0x0b, 0x42, 0x70,
|
||||
0x32, 0xea, 0x34, 0x8d, 0x48, 0x6c, 0xe3, 0xdd, 0x54, 0xca, 0xc3, 0xf0, 0x0c, 0xbc, 0x12, 0x8f,
|
||||
0x82, 0x62, 0x6f, 0x92, 0xdd, 0x64, 0x53, 0xf7, 0xd2, 0x9b, 0x67, 0x66, 0xe7, 0x9b, 0x6f, 0x66,
|
||||
0xbf, 0x59, 0xc3, 0xd3, 0xaf, 0xe9, 0x74, 0x3e, 0xa3, 0x28, 0x89, 0x33, 0x7e, 0x93, 0x0a, 0x41,
|
||||
0xf9, 0x20, 0xcb, 0x53, 0x91, 0x62, 0x7d, 0x4c, 0x09, 0xe5, 0xb1, 0xa0, 0x2b, 0xf7, 0x28, 0xba,
|
||||
0x89, 0x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0xf7, 0xc5,
|
||||
0x1d, 0x27, 0x24, 0x6c, 0x00, 0xc7, 0xba, 0xcc, 0x35, 0x58, 0xe3, 0x06, 0x18, 0xa6, 0x79, 0x01,
|
||||
0x0d, 0x45, 0x81, 0xf8, 0xcc, 0xd8, 0xcd, 0x4a, 0x66, 0x6e, 0x6f, 0x5f, 0x58, 0x72, 0xba, 0x80,
|
||||
0x46, 0xb4, 0x07, 0x2d, 0xba, 0x1b, 0xcd, 0xa0, 0xae, 0x9f, 0x87, 0xc5, 0x5f, 0xe7, 0xf5, 0xff,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0x29, 0x03, 0xe3, 0x22, 0xa9, 0x06, 0x00, 0x00,
|
||||
// 566 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xc1, 0x6e, 0xd3, 0x40,
|
||||
0x10, 0xd5, 0xda, 0x6e, 0x44, 0x26, 0xa5, 0x0a, 0x9b, 0xa4, 0x58, 0x16, 0x04, 0xe3, 0x0b, 0x51,
|
||||
0x0f, 0x96, 0x48, 0x0f, 0x14, 0x0e, 0x48, 0x51, 0x5d, 0x50, 0xd4, 0x4a, 0x48, 0x76, 0x41, 0x08,
|
||||
0x4e, 0x86, 0x6e, 0x5c, 0x8b, 0xc4, 0x36, 0xde, 0x4d, 0xa5, 0x7c, 0x0c, 0xbf, 0x82, 0xf8, 0x14,
|
||||
0x3e, 0x05, 0xc5, 0xde, 0x24, 0xbb, 0xb1, 0x1d, 0x87, 0x43, 0x6f, 0xde, 0x99, 0x9d, 0x37, 0x6f,
|
||||
0x66, 0xdf, 0x8c, 0xe1, 0xf1, 0xa7, 0x78, 0x3a, 0x9f, 0x11, 0x2f, 0xf2, 0x13, 0x7a, 0x1b, 0x33,
|
||||
0x46, 0x52, 0x3b, 0x49, 0x63, 0x16, 0xe3, 0x66, 0x40, 0x22, 0x92, 0xfa, 0x8c, 0xdc, 0x18, 0x87,
|
||||
0xde, 0xad, 0x9f, 0x92, 0x9b, 0xdc, 0x61, 0xfd, 0x42, 0xd0, 0x39, 0x4f, 0x89, 0xcf, 0x48, 0x1e,
|
||||
0xea, 0x92, 0x9f, 0x73, 0x42, 0x19, 0x3e, 0x86, 0x46, 0x32, 0x9d, 0x07, 0x61, 0xa4, 0x23, 0x13,
|
||||
0x0d, 0x9a, 0x2e, 0x3f, 0xe1, 0x3e, 0x00, 0xe5, 0xe8, 0x63, 0x47, 0x57, 0x32, 0x9f, 0x60, 0x59,
|
||||
0xfa, 0xef, 0x32, 0xa0, 0xeb, 0x45, 0x42, 0x74, 0x35, 0xf7, 0x6f, 0x2c, 0xd8, 0x80, 0x07, 0xf9,
|
||||
0x69, 0xf4, 0x45, 0xd7, 0x32, 0xef, 0xfa, 0x8c, 0x31, 0x68, 0x61, 0x9c, 0x50, 0xfd, 0xc0, 0x44,
|
||||
0x03, 0xd5, 0xcd, 0xbe, 0xad, 0x21, 0x74, 0x65, 0x7a, 0x34, 0x89, 0x23, 0x2a, 0xe0, 0x8c, 0x1d,
|
||||
0xce, 0x70, 0x7d, 0xb6, 0x26, 0xd0, 0x7d, 0x4f, 0x58, 0x1e, 0x30, 0x8e, 0x26, 0x71, 0x5d, 0x4d,
|
||||
0x22, 0x96, 0x22, 0x63, 0x49, 0x7c, 0x55, 0x99, 0xaf, 0x75, 0x09, 0xbd, 0xad, 0x3c, 0x9c, 0x9c,
|
||||
0xdc, 0x04, 0x54, 0x68, 0xc2, 0xaa, 0x50, 0x45, 0x28, 0xf4, 0x2f, 0x82, 0x5e, 0x5e, 0xe9, 0xea,
|
||||
0xf5, 0xee, 0x89, 0x36, 0x7e, 0x0b, 0x1a, 0xf3, 0x03, 0xaa, 0x6b, 0xa6, 0x3a, 0x68, 0x0d, 0x4f,
|
||||
0xec, 0xb5, 0x34, 0xec, 0xd2, 0xfc, 0xf6, 0xb5, 0x1f, 0xd0, 0x8b, 0x88, 0xa5, 0x0b, 0x37, 0x8b,
|
||||
0x33, 0x5e, 0x41, 0x73, 0x6d, 0xc2, 0x6d, 0x50, 0x7f, 0x90, 0x05, 0x67, 0xb6, 0xfc, 0xc4, 0x5d,
|
||||
0x38, 0xb8, 0xf3, 0xa7, 0x73, 0xc2, 0x39, 0xe5, 0x87, 0x37, 0xca, 0x19, 0xb2, 0xce, 0xe0, 0x78,
|
||||
0x3b, 0xc3, 0xa6, 0x61, 0x82, 0xaa, 0xd0, 0xb6, 0xaa, 0xac, 0x0f, 0xd0, 0x73, 0xc8, 0x94, 0xec,
|
||||
0xdf, 0x9b, 0x1a, 0x99, 0x5a, 0x9f, 0x01, 0x6f, 0x9e, 0xce, 0xa9, 0x43, 0x3b, 0x81, 0x76, 0x42,
|
||||
0x52, 0x1a, 0x52, 0x46, 0x22, 0x1e, 0x94, 0x61, 0x1e, 0xba, 0x05, 0xbb, 0xf5, 0x12, 0x3a, 0x12,
|
||||
0xf2, 0x1e, 0x7a, 0x65, 0x80, 0xbd, 0x7b, 0x21, 0x23, 0x65, 0x55, 0xb7, 0xb2, 0x8e, 0xa0, 0xe3,
|
||||
0x95, 0x10, 0x2d, 0x83, 0x47, 0x15, 0xb5, 0xfe, 0x46, 0xf0, 0xa4, 0xb0, 0x71, 0xc6, 0x51, 0x58,
|
||||
0xfb, 0x3c, 0x97, 0xd0, 0xf8, 0x1e, 0x47, 0x93, 0x30, 0xd0, 0x95, 0x4c, 0x84, 0xa7, 0x82, 0x08,
|
||||
0x77, 0x01, 0xda, 0xe7, 0x59, 0x54, 0xae, 0x46, 0x0e, 0x61, 0xbc, 0x86, 0x96, 0x60, 0xfe, 0x1f,
|
||||
0x45, 0x0e, 0xff, 0x68, 0xf0, 0xa8, 0x90, 0x0f, 0x8f, 0x40, 0x5b, 0xe6, 0xc4, 0x2f, 0xf6, 0x64,
|
||||
0x65, 0xb4, 0x85, 0x8b, 0x17, 0xb3, 0x84, 0x2d, 0xf0, 0x57, 0xd0, 0xc5, 0xb5, 0xf5, 0x2e, 0x8d,
|
||||
0x67, 0xab, 0x58, 0xdc, 0x2f, 0x4c, 0x9c, 0xb4, 0x7a, 0x8d, 0x67, 0x95, 0x7e, 0xfe, 0x44, 0x2e,
|
||||
0x3c, 0x94, 0xf6, 0x0e, 0x16, 0x23, 0xca, 0x36, 0x9f, 0x61, 0x56, 0x5f, 0xe0, 0x98, 0x1f, 0xe1,
|
||||
0x48, 0x9e, 0x4d, 0x6c, 0xd6, 0x2d, 0x06, 0xe3, 0xf9, 0x8e, 0x1b, 0x1c, 0xd6, 0x81, 0x23, 0x79,
|
||||
0x70, 0x25, 0xd8, 0xd2, 0x99, 0x2e, 0xe9, 0xe6, 0x15, 0xb4, 0x84, 0x99, 0xc2, 0x4f, 0x4b, 0xab,
|
||||
0x59, 0x0d, 0x8e, 0xd1, 0xaf, 0x72, 0x73, 0x4e, 0x57, 0xd0, 0xf2, 0x2a, 0xd0, 0xbc, 0xdd, 0x68,
|
||||
0x25, 0xf3, 0xf2, 0xad, 0x91, 0xfd, 0x47, 0x4f, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xc3, 0xf2,
|
||||
0xb8, 0x2f, 0x7b, 0x07, 0x00, 0x00,
|
||||
}
|
||||
|
||||
@@ -15,6 +15,14 @@ message ExecuteResponse {
|
||||
}
|
||||
|
||||
service BackupItemAction {
|
||||
rpc AppliesTo(AppliesToRequest) returns (AppliesToResponse);
|
||||
rpc AppliesTo(BackupItemActionAppliesToRequest) returns (BackupItemActionAppliesToResponse);
|
||||
rpc Execute(ExecuteRequest) returns (ExecuteResponse);
|
||||
}
|
||||
|
||||
message BackupItemActionAppliesToRequest {
|
||||
string plugin = 1;
|
||||
}
|
||||
|
||||
message BackupItemActionAppliesToResponse {
|
||||
ResourceSelector ResourceSelector = 1;
|
||||
}
|
||||
@@ -59,8 +59,13 @@ message CreateSignedURLResponse {
|
||||
string url = 1;
|
||||
}
|
||||
|
||||
message ObjectStoreInitRequest {
|
||||
string plugin = 1;
|
||||
map<string, string> config = 2;
|
||||
}
|
||||
|
||||
service ObjectStore {
|
||||
rpc Init(InitRequest) returns (Empty);
|
||||
rpc Init(ObjectStoreInitRequest) returns (Empty);
|
||||
rpc PutObject(stream PutObjectRequest) returns (Empty);
|
||||
rpc GetObject(GetObjectRequest) returns (stream Bytes);
|
||||
rpc ListCommonPrefixes(ListCommonPrefixesRequest) returns (ListCommonPrefixesResponse);
|
||||
|
||||
@@ -17,6 +17,14 @@ message RestoreItemActionExecuteResponse {
|
||||
}
|
||||
|
||||
service RestoreItemAction {
|
||||
rpc AppliesTo(AppliesToRequest) returns (AppliesToResponse);
|
||||
rpc AppliesTo(RestoreItemActionAppliesToRequest) returns (RestoreItemActionAppliesToResponse);
|
||||
rpc Execute(RestoreItemActionExecuteRequest) returns (RestoreItemActionExecuteResponse);
|
||||
}
|
||||
|
||||
message RestoreItemActionAppliesToRequest {
|
||||
string plugin = 1;
|
||||
}
|
||||
|
||||
message RestoreItemActionAppliesToResponse {
|
||||
ResourceSelector ResourceSelector = 1;
|
||||
}
|
||||
|
||||
@@ -3,23 +3,6 @@ package generated;
|
||||
|
||||
message Empty {}
|
||||
|
||||
message InitRequest {
|
||||
string plugin = 1;
|
||||
map<string, string> config = 2;
|
||||
}
|
||||
|
||||
message AppliesToRequest {
|
||||
string plugin = 1;
|
||||
}
|
||||
|
||||
message AppliesToResponse {
|
||||
repeated string includedNamespaces = 1;
|
||||
repeated string excludedNamespaces = 2;
|
||||
repeated string includedResources = 3;
|
||||
repeated string excludedResources = 4;
|
||||
string selector = 5;
|
||||
}
|
||||
|
||||
message Stack {
|
||||
repeated StackFrame frames = 1;
|
||||
}
|
||||
@@ -36,3 +19,11 @@ message ResourceIdentifier {
|
||||
string namespace = 3;
|
||||
string name = 4;
|
||||
}
|
||||
|
||||
message ResourceSelector {
|
||||
repeated string includedNamespaces = 1;
|
||||
repeated string excludedNamespaces = 2;
|
||||
repeated string includedResources = 3;
|
||||
repeated string excludedResources = 4;
|
||||
string selector = 5;
|
||||
}
|
||||
@@ -61,8 +61,13 @@ message SetVolumeIDResponse {
|
||||
bytes persistentVolume = 1;
|
||||
}
|
||||
|
||||
message VolumeSnapshotterInitRequest {
|
||||
string plugin = 1;
|
||||
map<string, string> config = 2;
|
||||
}
|
||||
|
||||
service VolumeSnapshotter {
|
||||
rpc Init(InitRequest) returns (Empty);
|
||||
rpc Init(VolumeSnapshotterInitRequest) returns (Empty);
|
||||
rpc CreateVolumeFromSnapshot(CreateVolumeRequest) returns (CreateVolumeResponse);
|
||||
rpc GetVolumeInfo(GetVolumeInfoRequest) returns (GetVolumeInfoResponse);
|
||||
rpc CreateSnapshot(CreateSnapshotRequest) returns (CreateSnapshotResponse);
|
||||
|
||||
Reference in New Issue
Block a user