Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterKMSServiceServer(s grpc.ServiceRegistrar, srv KMSServiceServer)
- type KMSServiceClient
- type KMSServiceServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (this *Request) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Request) EqualVT(that *Request) bool
- func (x *Request) GetData() []byte
- func (x *Request) GetNodeUuid() string
- func (m *Request) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Request) MarshalToVT(dAtA []byte) (int, error)
- func (m *Request) MarshalVT() (dAtA []byte, err error)
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (m *Request) SizeVT() (n int)
- func (x *Request) String() string
- func (m *Request) UnmarshalVT(dAtA []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (this *Response) EqualMessageVT(thatMsg proto.Message) bool
- func (this *Response) EqualVT(that *Response) bool
- func (x *Response) GetData() []byte
- func (m *Response) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Response) MarshalToVT(dAtA []byte) (int, error)
- func (m *Response) MarshalVT() (dAtA []byte, err error)
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (m *Response) SizeVT() (n int)
- func (x *Response) String() string
- func (m *Response) UnmarshalVT(dAtA []byte) error
- type UnimplementedKMSServiceServer
- type UnsafeKMSServiceServer
Constants ¶
const ( KMSService_Seal_FullMethodName = "/sidero.kms.KMSService/Seal" KMSService_Unseal_FullMethodName = "/sidero.kms.KMSService/Unseal" )
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_kms_kms_proto protoreflect.FileDescriptor
var KMSService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sidero.kms.KMSService", HandlerType: (*KMSServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Seal", Handler: _KMSService_Seal_Handler, }, { MethodName: "Unseal", Handler: _KMSService_Unseal_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "kms/kms.proto", }
KMSService_ServiceDesc is the grpc.ServiceDesc for KMSService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterKMSServiceServer ¶
func RegisterKMSServiceServer(s grpc.ServiceRegistrar, srv KMSServiceServer)
Types ¶
type KMSServiceClient ¶
type KMSServiceClient interface { Seal(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) Unseal(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) }
KMSServiceClient is the client API for KMSService 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 NewKMSServiceClient ¶
func NewKMSServiceClient(cc grpc.ClientConnInterface) KMSServiceClient
type KMSServiceServer ¶
type KMSServiceServer interface { Seal(context.Context, *Request) (*Response, error) Unseal(context.Context, *Request) (*Response, error) // contains filtered or unexported methods }
KMSServiceServer is the server API for KMSService service. All implementations must embed UnimplementedKMSServiceServer for forward compatibility
type Request ¶
type Request struct { // Node UUID as string. NodeUuid string `protobuf:"bytes,1,opt,name=node_uuid,json=nodeUuid,proto3" json:"node_uuid,omitempty"` // Data to encrypt or decrypt. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) GetNodeUuid ¶
func (*Request) MarshalToSizedBufferVT ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
func (*Request) UnmarshalVT ¶
type Response ¶
type Response struct { // Data is encrypted/decrypted response. Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) MarshalToSizedBufferVT ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
func (*Response) UnmarshalVT ¶
type UnimplementedKMSServiceServer ¶
type UnimplementedKMSServiceServer struct { }
UnimplementedKMSServiceServer must be embedded to have forward compatible implementations.
type UnsafeKMSServiceServer ¶
type UnsafeKMSServiceServer interface {
// contains filtered or unexported methods
}
UnsafeKMSServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KMSServiceServer will result in compilation errors.