key_manager

package
v0.0.0-...-5ed6c77 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyManagerService_GetKey_FullMethodName        = "/keymanager.KeyManagerService/GetKey"
	KeyManagerService_ReallocateKey_FullMethodName = "/keymanager.KeyManagerService/ReallocateKey"
)

Variables

View Source
var File_key_manager_proto protoreflect.FileDescriptor
View Source
var KeyManagerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "keymanager.KeyManagerService",
	HandlerType: (*KeyManagerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetKey",
			Handler:    _KeyManagerService_GetKey_Handler,
		},
		{
			MethodName: "ReallocateKey",
			Handler:    _KeyManagerService_ReallocateKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "key_manager.proto",
}

KeyManagerService_ServiceDesc is the grpc.ServiceDesc for KeyManagerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterKeyManagerServiceServer

func RegisterKeyManagerServiceServer(s grpc.ServiceRegistrar, srv KeyManagerServiceServer)

Types

type GetKeyRequest

type GetKeyRequest struct {
	// contains filtered or unexported fields
}

func (*GetKeyRequest) Descriptor deprecated

func (*GetKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetKeyRequest.ProtoReflect.Descriptor instead.

func (*GetKeyRequest) ProtoMessage

func (*GetKeyRequest) ProtoMessage()

func (*GetKeyRequest) ProtoReflect

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

func (*GetKeyRequest) Reset

func (x *GetKeyRequest) Reset()

func (*GetKeyRequest) String

func (x *GetKeyRequest) String() string

type GetKeyResponse

type GetKeyResponse struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*GetKeyResponse) Descriptor deprecated

func (*GetKeyResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetKeyResponse.ProtoReflect.Descriptor instead.

func (*GetKeyResponse) GetError

func (x *GetKeyResponse) GetError() string

func (*GetKeyResponse) GetKey

func (x *GetKeyResponse) GetKey() string

func (*GetKeyResponse) ProtoMessage

func (*GetKeyResponse) ProtoMessage()

func (*GetKeyResponse) ProtoReflect

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

func (*GetKeyResponse) Reset

func (x *GetKeyResponse) Reset()

func (*GetKeyResponse) String

func (x *GetKeyResponse) String() string

type KeyManagerServiceClient

type KeyManagerServiceClient interface {
	GetKey(ctx context.Context, in *GetKeyRequest, opts ...grpc.CallOption) (*GetKeyResponse, error)
	ReallocateKey(ctx context.Context, in *ReallocateKeyRequest, opts ...grpc.CallOption) (*ReallocateKeyResponse, error)
}

KeyManagerServiceClient is the client API for KeyManagerService 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.

Define the service with only the required methods

type KeyManagerServiceServer

type KeyManagerServiceServer interface {
	GetKey(context.Context, *GetKeyRequest) (*GetKeyResponse, error)
	ReallocateKey(context.Context, *ReallocateKeyRequest) (*ReallocateKeyResponse, error)
	// contains filtered or unexported methods
}

KeyManagerServiceServer is the server API for KeyManagerService service. All implementations must embed UnimplementedKeyManagerServiceServer for forward compatibility.

Define the service with only the required methods

type ReallocateKeyRequest

type ReallocateKeyRequest struct {
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

func (*ReallocateKeyRequest) Descriptor deprecated

func (*ReallocateKeyRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReallocateKeyRequest.ProtoReflect.Descriptor instead.

func (*ReallocateKeyRequest) GetKey

func (x *ReallocateKeyRequest) GetKey() string

func (*ReallocateKeyRequest) ProtoMessage

func (*ReallocateKeyRequest) ProtoMessage()

func (*ReallocateKeyRequest) ProtoReflect

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

func (*ReallocateKeyRequest) Reset

func (x *ReallocateKeyRequest) Reset()

func (*ReallocateKeyRequest) String

func (x *ReallocateKeyRequest) String() string

type ReallocateKeyResponse

type ReallocateKeyResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Error   string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ReallocateKeyResponse) Descriptor deprecated

func (*ReallocateKeyResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReallocateKeyResponse.ProtoReflect.Descriptor instead.

func (*ReallocateKeyResponse) GetError

func (x *ReallocateKeyResponse) GetError() string

func (*ReallocateKeyResponse) GetMessage

func (x *ReallocateKeyResponse) GetMessage() string

func (*ReallocateKeyResponse) ProtoMessage

func (*ReallocateKeyResponse) ProtoMessage()

func (*ReallocateKeyResponse) ProtoReflect

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

func (*ReallocateKeyResponse) Reset

func (x *ReallocateKeyResponse) Reset()

func (*ReallocateKeyResponse) String

func (x *ReallocateKeyResponse) String() string

type UnimplementedKeyManagerServiceServer

type UnimplementedKeyManagerServiceServer struct{}

UnimplementedKeyManagerServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedKeyManagerServiceServer) GetKey

func (UnimplementedKeyManagerServiceServer) ReallocateKey

type UnsafeKeyManagerServiceServer

type UnsafeKeyManagerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeKeyManagerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to KeyManagerServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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