Documentation ¶
Index ¶
- Variables
- func NewLBDial(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
- func RegisterMetaServiceServer(s *grpc.Server, srv MetaServiceServer)
- type BackupIdentifier
- func (*BackupIdentifier) Descriptor() ([]byte, []int)deprecated
- func (x *BackupIdentifier) GetBackupHandle() string
- func (x *BackupIdentifier) GetParameters() map[string]string
- func (*BackupIdentifier) ProtoMessage()
- func (x *BackupIdentifier) ProtoReflect() protoreflect.Message
- func (x *BackupIdentifier) Reset()
- func (x *BackupIdentifier) String() string
- type BackupRequest
- func (*BackupRequest) Descriptor() ([]byte, []int)deprecated
- func (m *BackupRequest) GetBackup() isBackupRequest_Backup
- func (x *BackupRequest) GetBackupResource() *BackupResource
- func (x *BackupRequest) GetIdentifier() *BackupIdentifier
- func (*BackupRequest) ProtoMessage()
- func (x *BackupRequest) ProtoReflect() protoreflect.Message
- func (x *BackupRequest) Reset()
- func (x *BackupRequest) String() string
- type BackupRequest_BackupResource
- type BackupRequest_Identifier
- type BackupResource
- func (*BackupResource) Descriptor() ([]byte, []int)deprecated
- func (x *BackupResource) GetData() []byte
- func (x *BackupResource) GetResource() *Resource
- func (*BackupResource) ProtoMessage()
- func (x *BackupResource) ProtoReflect() protoreflect.Message
- func (x *BackupResource) Reset()
- func (x *BackupResource) String() string
- type DeleteRequest
- type Empty
- type GetResponse
- func (*GetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetResponse) GetBackupResource() *BackupResource
- func (x *GetResponse) GetIdentifier() *BackupIdentifier
- func (m *GetResponse) GetRestore() isGetResponse_Restore
- func (*GetResponse) ProtoMessage()
- func (x *GetResponse) ProtoReflect() protoreflect.Message
- func (x *GetResponse) Reset()
- func (x *GetResponse) String() string
- type GetResponse_BackupResource
- type GetResponse_Identifier
- type MetaServiceClient
- type MetaServiceServer
- type MetaService_BackupClient
- type MetaService_BackupServer
- type MetaService_RestoreClient
- type MetaService_RestoreServer
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetGroup() string
- func (x *Resource) GetKind() string
- func (x *Resource) GetName() string
- func (x *Resource) GetNamespaced() bool
- func (x *Resource) GetVersion() string
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type RestoreRequest
- type UnimplementedMetaServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_metaservice_proto protoreflect.FileDescriptor
Functions ¶
func NewLBDial ¶
func NewLBDial(target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
func RegisterMetaServiceServer ¶
func RegisterMetaServiceServer(s *grpc.Server, srv MetaServiceServer)
Types ¶
type BackupIdentifier ¶
type BackupIdentifier struct { BackupHandle string `protobuf:"bytes,1,opt,name=backup_handle,json=backupHandle,proto3" json:"backup_handle,omitempty"` Parameters map[string]string `` /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
func (*BackupIdentifier) Descriptor
deprecated
func (*BackupIdentifier) Descriptor() ([]byte, []int)
Deprecated: Use BackupIdentifier.ProtoReflect.Descriptor instead.
func (*BackupIdentifier) GetBackupHandle ¶
func (x *BackupIdentifier) GetBackupHandle() string
func (*BackupIdentifier) GetParameters ¶
func (x *BackupIdentifier) GetParameters() map[string]string
func (*BackupIdentifier) ProtoMessage ¶
func (*BackupIdentifier) ProtoMessage()
func (*BackupIdentifier) ProtoReflect ¶
func (x *BackupIdentifier) ProtoReflect() protoreflect.Message
func (*BackupIdentifier) Reset ¶
func (x *BackupIdentifier) Reset()
func (*BackupIdentifier) String ¶
func (x *BackupIdentifier) String() string
type BackupRequest ¶
type BackupRequest struct { // Types that are assignable to Backup: // *BackupRequest_Identifier // *BackupRequest_BackupResource Backup isBackupRequest_Backup `protobuf_oneof:"Backup"` // contains filtered or unexported fields }
func (*BackupRequest) Descriptor
deprecated
func (*BackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use BackupRequest.ProtoReflect.Descriptor instead.
func (*BackupRequest) GetBackup ¶
func (m *BackupRequest) GetBackup() isBackupRequest_Backup
func (*BackupRequest) GetBackupResource ¶
func (x *BackupRequest) GetBackupResource() *BackupResource
func (*BackupRequest) GetIdentifier ¶
func (x *BackupRequest) GetIdentifier() *BackupIdentifier
func (*BackupRequest) ProtoMessage ¶
func (*BackupRequest) ProtoMessage()
func (*BackupRequest) ProtoReflect ¶
func (x *BackupRequest) ProtoReflect() protoreflect.Message
func (*BackupRequest) Reset ¶
func (x *BackupRequest) Reset()
func (*BackupRequest) String ¶
func (x *BackupRequest) String() string
type BackupRequest_BackupResource ¶
type BackupRequest_BackupResource struct {
BackupResource *BackupResource `protobuf:"bytes,2,opt,name=backup_resource,json=backupResource,proto3,oneof"`
}
type BackupRequest_Identifier ¶
type BackupRequest_Identifier struct {
Identifier *BackupIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3,oneof"`
}
type BackupResource ¶
type BackupResource struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*BackupResource) Descriptor
deprecated
func (*BackupResource) Descriptor() ([]byte, []int)
Deprecated: Use BackupResource.ProtoReflect.Descriptor instead.
func (*BackupResource) GetData ¶
func (x *BackupResource) GetData() []byte
func (*BackupResource) GetResource ¶
func (x *BackupResource) GetResource() *Resource
func (*BackupResource) ProtoMessage ¶
func (*BackupResource) ProtoMessage()
func (*BackupResource) ProtoReflect ¶
func (x *BackupResource) ProtoReflect() protoreflect.Message
func (*BackupResource) Reset ¶
func (x *BackupResource) Reset()
func (*BackupResource) String ¶
func (x *BackupResource) String() string
type DeleteRequest ¶
type DeleteRequest struct { Id *BackupIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() *BackupIdentifier
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetResponse ¶
type GetResponse struct { // Types that are assignable to Restore: // *GetResponse_Identifier // *GetResponse_BackupResource Restore isGetResponse_Restore `protobuf_oneof:"Restore"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetBackupResource ¶
func (x *GetResponse) GetBackupResource() *BackupResource
func (*GetResponse) GetIdentifier ¶
func (x *GetResponse) GetIdentifier() *BackupIdentifier
func (*GetResponse) GetRestore ¶
func (m *GetResponse) GetRestore() isGetResponse_Restore
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type GetResponse_BackupResource ¶
type GetResponse_BackupResource struct {
BackupResource *BackupResource `protobuf:"bytes,2,opt,name=backup_resource,json=backupResource,proto3,oneof"`
}
type GetResponse_Identifier ¶
type GetResponse_Identifier struct {
Identifier *BackupIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3,oneof"`
}
type MetaServiceClient ¶
type MetaServiceClient interface { Backup(ctx context.Context, opts ...grpc.CallOption) (MetaService_BackupClient, error) Restore(ctx context.Context, in *RestoreRequest, opts ...grpc.CallOption) (MetaService_RestoreClient, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*Empty, error) }
MetaServiceClient is the client API for MetaService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func GetMetaServiceClient ¶
func GetMetaServiceClient(target string) (MetaServiceClient, *grpc.ClientConn, error)
func NewMetaServiceClient ¶
func NewMetaServiceClient(cc grpc.ClientConnInterface) MetaServiceClient
type MetaServiceServer ¶
type MetaServiceServer interface { Backup(MetaService_BackupServer) error Restore(*RestoreRequest, MetaService_RestoreServer) error Delete(context.Context, *DeleteRequest) (*Empty, error) }
MetaServiceServer is the server API for MetaService service.
type MetaService_BackupClient ¶
type MetaService_BackupClient interface { Send(*BackupRequest) error CloseAndRecv() (*Empty, error) grpc.ClientStream }
type MetaService_BackupServer ¶
type MetaService_BackupServer interface { SendAndClose(*Empty) error Recv() (*BackupRequest, error) grpc.ServerStream }
type MetaService_RestoreClient ¶
type MetaService_RestoreClient interface { Recv() (*GetResponse, error) grpc.ClientStream }
type MetaService_RestoreServer ¶
type MetaService_RestoreServer interface { Send(*GetResponse) error grpc.ServerStream }
type Resource ¶
type Resource struct { // name is the plural name of the resource. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // namespaced indicates if a resource is namespaced or not. Namespaced bool `protobuf:"varint,2,opt,name=namespaced,proto3" json:"namespaced,omitempty"` // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // group is the group of the resource. Empty implies the group of the core resource list. // For subresources, this may have a different value, for example: Scale". Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` // version is the version of the resource. // For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)". Version string `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
Resource specifies the name of a resource and whether it is namespaced.
func (*Resource) Descriptor
deprecated
func (*Resource) GetNamespaced ¶
func (*Resource) GetVersion ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type RestoreRequest ¶
type RestoreRequest struct { Id *BackupIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RestoreRequest) Descriptor
deprecated
func (*RestoreRequest) Descriptor() ([]byte, []int)
Deprecated: Use RestoreRequest.ProtoReflect.Descriptor instead.
func (*RestoreRequest) GetId ¶
func (x *RestoreRequest) GetId() *BackupIdentifier
func (*RestoreRequest) ProtoMessage ¶
func (*RestoreRequest) ProtoMessage()
func (*RestoreRequest) ProtoReflect ¶
func (x *RestoreRequest) ProtoReflect() protoreflect.Message
func (*RestoreRequest) Reset ¶
func (x *RestoreRequest) Reset()
func (*RestoreRequest) String ¶
func (x *RestoreRequest) String() string
type UnimplementedMetaServiceServer ¶
type UnimplementedMetaServiceServer struct { }
UnimplementedMetaServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMetaServiceServer) Backup ¶
func (*UnimplementedMetaServiceServer) Backup(MetaService_BackupServer) error
func (*UnimplementedMetaServiceServer) Delete ¶
func (*UnimplementedMetaServiceServer) Delete(context.Context, *DeleteRequest) (*Empty, error)
func (*UnimplementedMetaServiceServer) Restore ¶
func (*UnimplementedMetaServiceServer) Restore(*RestoreRequest, MetaService_RestoreServer) error