Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
- type APIClient
- type APIServer
- type RecoverMessage
- func (*RecoverMessage) Descriptor() ([]byte, []int)deprecated
- func (x *RecoverMessage) GetKmsUri() string
- func (x *RecoverMessage) GetStorageUri() string
- func (*RecoverMessage) ProtoMessage()
- func (x *RecoverMessage) ProtoReflect() protoreflect.Message
- func (x *RecoverMessage) Reset()
- func (x *RecoverMessage) String() string
- type RecoverResponse
- type UnimplementedAPIServer
- type UnsafeAPIServer
Constants ¶
This section is empty.
Variables ¶
var API_ServiceDesc = grpc.ServiceDesc{ ServiceName: "recoverproto.API", HandlerType: (*APIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Recover", Handler: _API_Recover_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "recover.proto", }
API_ServiceDesc is the grpc.ServiceDesc for API service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_recover_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServer ¶
func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
Types ¶
type APIClient ¶
type APIClient interface { // Recover sends the necessary information to the recoveryserver to initiate recovery of a node. Recover(ctx context.Context, in *RecoverMessage, opts ...grpc.CallOption) (*RecoverResponse, error) }
APIClient is the client API for API service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type APIServer ¶
type APIServer interface { // Recover sends the necessary information to the recoveryserver to initiate recovery of a node. Recover(context.Context, *RecoverMessage) (*RecoverResponse, error) // contains filtered or unexported methods }
APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility
type RecoverMessage ¶
type RecoverMessage struct { // bytes state_disk_key = 1; removed // bytes measurement_secret = 2; removed // kms_uri is the URI of the KMS the recoveryserver should use to decrypt DEKs. KmsUri string `protobuf:"bytes,3,opt,name=kms_uri,json=kmsUri,proto3" json:"kms_uri,omitempty"` // storage_uri is the URI of the storage location the recoveryserver should use to fetch DEKs. StorageUri string `protobuf:"bytes,4,opt,name=storage_uri,json=storageUri,proto3" json:"storage_uri,omitempty"` // contains filtered or unexported fields }
func (*RecoverMessage) Descriptor
deprecated
func (*RecoverMessage) Descriptor() ([]byte, []int)
Deprecated: Use RecoverMessage.ProtoReflect.Descriptor instead.
func (*RecoverMessage) GetKmsUri ¶ added in v2.5.0
func (x *RecoverMessage) GetKmsUri() string
func (*RecoverMessage) GetStorageUri ¶ added in v2.5.0
func (x *RecoverMessage) GetStorageUri() string
func (*RecoverMessage) ProtoMessage ¶
func (*RecoverMessage) ProtoMessage()
func (*RecoverMessage) ProtoReflect ¶
func (x *RecoverMessage) ProtoReflect() protoreflect.Message
func (*RecoverMessage) Reset ¶
func (x *RecoverMessage) Reset()
func (*RecoverMessage) String ¶
func (x *RecoverMessage) String() string
type RecoverResponse ¶
type RecoverResponse struct {
// contains filtered or unexported fields
}
func (*RecoverResponse) Descriptor
deprecated
func (*RecoverResponse) Descriptor() ([]byte, []int)
Deprecated: Use RecoverResponse.ProtoReflect.Descriptor instead.
func (*RecoverResponse) ProtoMessage ¶
func (*RecoverResponse) ProtoMessage()
func (*RecoverResponse) ProtoReflect ¶
func (x *RecoverResponse) ProtoReflect() protoreflect.Message
func (*RecoverResponse) Reset ¶
func (x *RecoverResponse) Reset()
func (*RecoverResponse) String ¶
func (x *RecoverResponse) String() string
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedAPIServer) Recover ¶
func (UnimplementedAPIServer) Recover(context.Context, *RecoverMessage) (*RecoverResponse, error)
type UnsafeAPIServer ¶
type UnsafeAPIServer interface {
// contains filtered or unexported methods
}
UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.