kms

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2023 License: MPL-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

View Source
const (
	KMSService_Seal_FullMethodName   = "/sidero.kms.KMSService/Seal"
	KMSService_Unseal_FullMethodName = "/sidero.kms.KMSService/Unseal"
)

Variables

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var File_kms_kms_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) EqualMessageVT

func (this *Request) EqualMessageVT(thatMsg proto.Message) bool

func (*Request) EqualVT

func (this *Request) EqualVT(that *Request) bool

func (*Request) GetData

func (x *Request) GetData() []byte

func (*Request) GetNodeUuid

func (x *Request) GetNodeUuid() string

func (*Request) MarshalToSizedBufferVT

func (m *Request) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Request) MarshalToVT

func (m *Request) MarshalToVT(dAtA []byte) (int, error)

func (*Request) MarshalVT

func (m *Request) MarshalVT() (dAtA []byte, err error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) SizeVT

func (m *Request) SizeVT() (n int)

func (*Request) String

func (x *Request) String() string

func (*Request) UnmarshalVT

func (m *Request) UnmarshalVT(dAtA []byte) error

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) EqualMessageVT

func (this *Response) EqualMessageVT(thatMsg proto.Message) bool

func (*Response) EqualVT

func (this *Response) EqualVT(that *Response) bool

func (*Response) GetData

func (x *Response) GetData() []byte

func (*Response) MarshalToSizedBufferVT

func (m *Response) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Response) MarshalToVT

func (m *Response) MarshalToVT(dAtA []byte) (int, error)

func (*Response) MarshalVT

func (m *Response) MarshalVT() (dAtA []byte, err error)

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) SizeVT

func (m *Response) SizeVT() (n int)

func (*Response) String

func (x *Response) String() string

func (*Response) UnmarshalVT

func (m *Response) UnmarshalVT(dAtA []byte) error

type UnimplementedKMSServiceServer

type UnimplementedKMSServiceServer struct {
}

UnimplementedKMSServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedKMSServiceServer) Seal

func (UnimplementedKMSServiceServer) Unseal

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL