Documentation ¶
Index ¶
- Variables
- func NewWrapper(impl wrapping.Wrapper) *wrapper
- func RegisterInitFinalizeServer(s grpc.ServiceRegistrar, srv InitFinalizeServer)
- func RegisterWrappingServer(s grpc.ServiceRegistrar, srv WrappingServer)
- type DecryptRequest
- func (*DecryptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DecryptRequest) GetCiphertext() *v2.BlobInfo
- func (x *DecryptRequest) GetOptions() *v2.Options
- func (*DecryptRequest) ProtoMessage()
- func (x *DecryptRequest) ProtoReflect() protoreflect.Message
- func (x *DecryptRequest) Reset()
- func (x *DecryptRequest) String() string
- type DecryptResponse
- type EncryptRequest
- func (*EncryptRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptRequest) GetOptions() *v2.Options
- func (x *EncryptRequest) GetPlaintext() []byte
- func (*EncryptRequest) ProtoMessage()
- func (x *EncryptRequest) ProtoReflect() protoreflect.Message
- func (x *EncryptRequest) Reset()
- func (x *EncryptRequest) String() string
- type EncryptResponse
- type FinalizeRequest
- type FinalizeResponse
- type InitFinalizeClient
- type InitFinalizeServer
- type InitRequest
- type InitResponse
- type KeyIdRequest
- type KeyIdResponse
- type SetConfigRequest
- type SetConfigResponse
- func (*SetConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetConfigResponse) GetWrapperConfig() *v2.WrapperConfig
- func (*SetConfigResponse) ProtoMessage()
- func (x *SetConfigResponse) ProtoReflect() protoreflect.Message
- func (x *SetConfigResponse) Reset()
- func (x *SetConfigResponse) String() string
- type TypeRequest
- type TypeResponse
- type UnimplementedInitFinalizeServer
- type UnimplementedWrappingServer
- func (UnimplementedWrappingServer) Decrypt(context.Context, *DecryptRequest) (*DecryptResponse, error)
- func (UnimplementedWrappingServer) Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error)
- func (UnimplementedWrappingServer) KeyId(context.Context, *KeyIdRequest) (*KeyIdResponse, error)
- func (UnimplementedWrappingServer) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error)
- func (UnimplementedWrappingServer) Type(context.Context, *TypeRequest) (*TypeResponse, error)
- type UnsafeInitFinalizeServer
- type UnsafeWrappingServer
- type WrappingClient
- type WrappingServer
Constants ¶
This section is empty.
Variables ¶
var File_plugin_github_com_hashicorp_go_kms_wrapping_plugin_v1_proto protoreflect.FileDescriptor
var InitFinalize_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.hashicorp.go.kms.wrapping.plugin.v1.InitFinalize", HandlerType: (*InitFinalizeServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Init", Handler: _InitFinalize_Init_Handler, }, { MethodName: "Finalize", Handler: _InitFinalize_Finalize_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/github.com.hashicorp.go.kms.wrapping.plugin.v1.proto", }
InitFinalize_ServiceDesc is the grpc.ServiceDesc for InitFinalize service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Wrapping_ServiceDesc = grpc.ServiceDesc{ ServiceName: "github.com.hashicorp.go.kms.wrapping.plugin.v1.Wrapping", HandlerType: (*WrappingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Type", Handler: _Wrapping_Type_Handler, }, { MethodName: "KeyId", Handler: _Wrapping_KeyId_Handler, }, { MethodName: "SetConfig", Handler: _Wrapping_SetConfig_Handler, }, { MethodName: "Encrypt", Handler: _Wrapping_Encrypt_Handler, }, { MethodName: "Decrypt", Handler: _Wrapping_Decrypt_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "plugin/github.com.hashicorp.go.kms.wrapping.plugin.v1.proto", }
Wrapping_ServiceDesc is the grpc.ServiceDesc for Wrapping service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func NewWrapper ¶
func RegisterInitFinalizeServer ¶
func RegisterInitFinalizeServer(s grpc.ServiceRegistrar, srv InitFinalizeServer)
func RegisterWrappingServer ¶
func RegisterWrappingServer(s grpc.ServiceRegistrar, srv WrappingServer)
Types ¶
type DecryptRequest ¶
type DecryptRequest struct { Ciphertext *v2.BlobInfo `protobuf:"bytes,10,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` Options *v2.Options `protobuf:"bytes,20,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*DecryptRequest) Descriptor
deprecated
func (*DecryptRequest) Descriptor() ([]byte, []int)
Deprecated: Use DecryptRequest.ProtoReflect.Descriptor instead.
func (*DecryptRequest) GetCiphertext ¶
func (x *DecryptRequest) GetCiphertext() *v2.BlobInfo
func (*DecryptRequest) GetOptions ¶
func (x *DecryptRequest) GetOptions() *v2.Options
func (*DecryptRequest) ProtoMessage ¶
func (*DecryptRequest) ProtoMessage()
func (*DecryptRequest) ProtoReflect ¶
func (x *DecryptRequest) ProtoReflect() protoreflect.Message
func (*DecryptRequest) Reset ¶
func (x *DecryptRequest) Reset()
func (*DecryptRequest) String ¶
func (x *DecryptRequest) String() string
type DecryptResponse ¶
type DecryptResponse struct { Plaintext []byte `protobuf:"bytes,10,opt,name=plaintext,proto3" json:"plaintext,omitempty"` // contains filtered or unexported fields }
func (*DecryptResponse) Descriptor
deprecated
func (*DecryptResponse) Descriptor() ([]byte, []int)
Deprecated: Use DecryptResponse.ProtoReflect.Descriptor instead.
func (*DecryptResponse) GetPlaintext ¶
func (x *DecryptResponse) GetPlaintext() []byte
func (*DecryptResponse) ProtoMessage ¶
func (*DecryptResponse) ProtoMessage()
func (*DecryptResponse) ProtoReflect ¶
func (x *DecryptResponse) ProtoReflect() protoreflect.Message
func (*DecryptResponse) Reset ¶
func (x *DecryptResponse) Reset()
func (*DecryptResponse) String ¶
func (x *DecryptResponse) String() string
type EncryptRequest ¶
type EncryptRequest struct { Plaintext []byte `protobuf:"bytes,10,opt,name=plaintext,proto3" json:"plaintext,omitempty"` Options *v2.Options `protobuf:"bytes,20,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*EncryptRequest) Descriptor
deprecated
func (*EncryptRequest) Descriptor() ([]byte, []int)
Deprecated: Use EncryptRequest.ProtoReflect.Descriptor instead.
func (*EncryptRequest) GetOptions ¶
func (x *EncryptRequest) GetOptions() *v2.Options
func (*EncryptRequest) GetPlaintext ¶
func (x *EncryptRequest) GetPlaintext() []byte
func (*EncryptRequest) ProtoMessage ¶
func (*EncryptRequest) ProtoMessage()
func (*EncryptRequest) ProtoReflect ¶
func (x *EncryptRequest) ProtoReflect() protoreflect.Message
func (*EncryptRequest) Reset ¶
func (x *EncryptRequest) Reset()
func (*EncryptRequest) String ¶
func (x *EncryptRequest) String() string
type EncryptResponse ¶
type EncryptResponse struct { Ciphertext *v2.BlobInfo `protobuf:"bytes,10,opt,name=ciphertext,proto3" json:"ciphertext,omitempty"` // contains filtered or unexported fields }
func (*EncryptResponse) Descriptor
deprecated
func (*EncryptResponse) Descriptor() ([]byte, []int)
Deprecated: Use EncryptResponse.ProtoReflect.Descriptor instead.
func (*EncryptResponse) GetCiphertext ¶
func (x *EncryptResponse) GetCiphertext() *v2.BlobInfo
func (*EncryptResponse) ProtoMessage ¶
func (*EncryptResponse) ProtoMessage()
func (*EncryptResponse) ProtoReflect ¶
func (x *EncryptResponse) ProtoReflect() protoreflect.Message
func (*EncryptResponse) Reset ¶
func (x *EncryptResponse) Reset()
func (*EncryptResponse) String ¶
func (x *EncryptResponse) String() string
type FinalizeRequest ¶
type FinalizeRequest struct { Options *v2.Options `protobuf:"bytes,20,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*FinalizeRequest) Descriptor
deprecated
func (*FinalizeRequest) Descriptor() ([]byte, []int)
Deprecated: Use FinalizeRequest.ProtoReflect.Descriptor instead.
func (*FinalizeRequest) GetOptions ¶
func (x *FinalizeRequest) GetOptions() *v2.Options
func (*FinalizeRequest) ProtoMessage ¶
func (*FinalizeRequest) ProtoMessage()
func (*FinalizeRequest) ProtoReflect ¶
func (x *FinalizeRequest) ProtoReflect() protoreflect.Message
func (*FinalizeRequest) Reset ¶
func (x *FinalizeRequest) Reset()
func (*FinalizeRequest) String ¶
func (x *FinalizeRequest) String() string
type FinalizeResponse ¶
type FinalizeResponse struct {
// contains filtered or unexported fields
}
func (*FinalizeResponse) Descriptor
deprecated
func (*FinalizeResponse) Descriptor() ([]byte, []int)
Deprecated: Use FinalizeResponse.ProtoReflect.Descriptor instead.
func (*FinalizeResponse) ProtoMessage ¶
func (*FinalizeResponse) ProtoMessage()
func (*FinalizeResponse) ProtoReflect ¶
func (x *FinalizeResponse) ProtoReflect() protoreflect.Message
func (*FinalizeResponse) Reset ¶
func (x *FinalizeResponse) Reset()
func (*FinalizeResponse) String ¶
func (x *FinalizeResponse) String() string
type InitFinalizeClient ¶
type InitFinalizeClient interface { Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error) Finalize(ctx context.Context, in *FinalizeRequest, opts ...grpc.CallOption) (*FinalizeResponse, error) }
InitFinalizeClient is the client API for InitFinalize 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 NewInitFinalizeClient ¶
func NewInitFinalizeClient(cc grpc.ClientConnInterface) InitFinalizeClient
type InitFinalizeServer ¶
type InitFinalizeServer interface { Init(context.Context, *InitRequest) (*InitResponse, error) Finalize(context.Context, *FinalizeRequest) (*FinalizeResponse, error) // contains filtered or unexported methods }
InitFinalizeServer is the server API for InitFinalize service. All implementations must embed UnimplementedInitFinalizeServer for forward compatibility
type InitRequest ¶
type InitRequest struct { Options *v2.Options `protobuf:"bytes,20,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*InitRequest) Descriptor
deprecated
func (*InitRequest) Descriptor() ([]byte, []int)
Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.
func (*InitRequest) GetOptions ¶
func (x *InitRequest) GetOptions() *v2.Options
func (*InitRequest) ProtoMessage ¶
func (*InitRequest) ProtoMessage()
func (*InitRequest) ProtoReflect ¶
func (x *InitRequest) ProtoReflect() protoreflect.Message
func (*InitRequest) Reset ¶
func (x *InitRequest) Reset()
func (*InitRequest) String ¶
func (x *InitRequest) String() string
type InitResponse ¶
type InitResponse struct {
// contains filtered or unexported fields
}
func (*InitResponse) Descriptor
deprecated
func (*InitResponse) Descriptor() ([]byte, []int)
Deprecated: Use InitResponse.ProtoReflect.Descriptor instead.
func (*InitResponse) ProtoMessage ¶
func (*InitResponse) ProtoMessage()
func (*InitResponse) ProtoReflect ¶
func (x *InitResponse) ProtoReflect() protoreflect.Message
func (*InitResponse) Reset ¶
func (x *InitResponse) Reset()
func (*InitResponse) String ¶
func (x *InitResponse) String() string
type KeyIdRequest ¶
type KeyIdRequest struct {
// contains filtered or unexported fields
}
func (*KeyIdRequest) Descriptor
deprecated
func (*KeyIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use KeyIdRequest.ProtoReflect.Descriptor instead.
func (*KeyIdRequest) ProtoMessage ¶
func (*KeyIdRequest) ProtoMessage()
func (*KeyIdRequest) ProtoReflect ¶
func (x *KeyIdRequest) ProtoReflect() protoreflect.Message
func (*KeyIdRequest) Reset ¶
func (x *KeyIdRequest) Reset()
func (*KeyIdRequest) String ¶
func (x *KeyIdRequest) String() string
type KeyIdResponse ¶
type KeyIdResponse struct { KeyId string `protobuf:"bytes,10,opt,name=key_id,proto3" json:"key_id,omitempty"` // contains filtered or unexported fields }
func (*KeyIdResponse) Descriptor
deprecated
func (*KeyIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use KeyIdResponse.ProtoReflect.Descriptor instead.
func (*KeyIdResponse) GetKeyId ¶
func (x *KeyIdResponse) GetKeyId() string
func (*KeyIdResponse) ProtoMessage ¶
func (*KeyIdResponse) ProtoMessage()
func (*KeyIdResponse) ProtoReflect ¶
func (x *KeyIdResponse) ProtoReflect() protoreflect.Message
func (*KeyIdResponse) Reset ¶
func (x *KeyIdResponse) Reset()
func (*KeyIdResponse) String ¶
func (x *KeyIdResponse) String() string
type SetConfigRequest ¶
type SetConfigRequest struct { Options *v2.Options `protobuf:"bytes,20,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*SetConfigRequest) Descriptor
deprecated
func (*SetConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead.
func (*SetConfigRequest) GetOptions ¶
func (x *SetConfigRequest) GetOptions() *v2.Options
func (*SetConfigRequest) ProtoMessage ¶
func (*SetConfigRequest) ProtoMessage()
func (*SetConfigRequest) ProtoReflect ¶
func (x *SetConfigRequest) ProtoReflect() protoreflect.Message
func (*SetConfigRequest) Reset ¶
func (x *SetConfigRequest) Reset()
func (*SetConfigRequest) String ¶
func (x *SetConfigRequest) String() string
type SetConfigResponse ¶
type SetConfigResponse struct { WrapperConfig *v2.WrapperConfig `protobuf:"bytes,10,opt,name=wrapper_config,json=wrapperConfig,proto3" json:"wrapper_config,omitempty"` // contains filtered or unexported fields }
func (*SetConfigResponse) Descriptor
deprecated
func (*SetConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetConfigResponse.ProtoReflect.Descriptor instead.
func (*SetConfigResponse) GetWrapperConfig ¶
func (x *SetConfigResponse) GetWrapperConfig() *v2.WrapperConfig
func (*SetConfigResponse) ProtoMessage ¶
func (*SetConfigResponse) ProtoMessage()
func (*SetConfigResponse) ProtoReflect ¶
func (x *SetConfigResponse) ProtoReflect() protoreflect.Message
func (*SetConfigResponse) Reset ¶
func (x *SetConfigResponse) Reset()
func (*SetConfigResponse) String ¶
func (x *SetConfigResponse) String() string
type TypeRequest ¶
type TypeRequest struct {
// contains filtered or unexported fields
}
func (*TypeRequest) Descriptor
deprecated
func (*TypeRequest) Descriptor() ([]byte, []int)
Deprecated: Use TypeRequest.ProtoReflect.Descriptor instead.
func (*TypeRequest) ProtoMessage ¶
func (*TypeRequest) ProtoMessage()
func (*TypeRequest) ProtoReflect ¶
func (x *TypeRequest) ProtoReflect() protoreflect.Message
func (*TypeRequest) Reset ¶
func (x *TypeRequest) Reset()
func (*TypeRequest) String ¶
func (x *TypeRequest) String() string
type TypeResponse ¶
type TypeResponse struct { Type uint32 `protobuf:"varint,10,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*TypeResponse) Descriptor
deprecated
func (*TypeResponse) Descriptor() ([]byte, []int)
Deprecated: Use TypeResponse.ProtoReflect.Descriptor instead.
func (*TypeResponse) GetType ¶
func (x *TypeResponse) GetType() uint32
func (*TypeResponse) ProtoMessage ¶
func (*TypeResponse) ProtoMessage()
func (*TypeResponse) ProtoReflect ¶
func (x *TypeResponse) ProtoReflect() protoreflect.Message
func (*TypeResponse) Reset ¶
func (x *TypeResponse) Reset()
func (*TypeResponse) String ¶
func (x *TypeResponse) String() string
type UnimplementedInitFinalizeServer ¶
type UnimplementedInitFinalizeServer struct { }
UnimplementedInitFinalizeServer must be embedded to have forward compatible implementations.
func (UnimplementedInitFinalizeServer) Finalize ¶
func (UnimplementedInitFinalizeServer) Finalize(context.Context, *FinalizeRequest) (*FinalizeResponse, error)
func (UnimplementedInitFinalizeServer) Init ¶
func (UnimplementedInitFinalizeServer) Init(context.Context, *InitRequest) (*InitResponse, error)
type UnimplementedWrappingServer ¶
type UnimplementedWrappingServer struct { }
UnimplementedWrappingServer must be embedded to have forward compatible implementations.
func (UnimplementedWrappingServer) Decrypt ¶
func (UnimplementedWrappingServer) Decrypt(context.Context, *DecryptRequest) (*DecryptResponse, error)
func (UnimplementedWrappingServer) Encrypt ¶
func (UnimplementedWrappingServer) Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error)
func (UnimplementedWrappingServer) KeyId ¶
func (UnimplementedWrappingServer) KeyId(context.Context, *KeyIdRequest) (*KeyIdResponse, error)
func (UnimplementedWrappingServer) SetConfig ¶
func (UnimplementedWrappingServer) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error)
func (UnimplementedWrappingServer) Type ¶
func (UnimplementedWrappingServer) Type(context.Context, *TypeRequest) (*TypeResponse, error)
type UnsafeInitFinalizeServer ¶
type UnsafeInitFinalizeServer interface {
// contains filtered or unexported methods
}
UnsafeInitFinalizeServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InitFinalizeServer will result in compilation errors.
type UnsafeWrappingServer ¶
type UnsafeWrappingServer interface {
// contains filtered or unexported methods
}
UnsafeWrappingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WrappingServer will result in compilation errors.
type WrappingClient ¶
type WrappingClient interface { Type(ctx context.Context, in *TypeRequest, opts ...grpc.CallOption) (*TypeResponse, error) KeyId(ctx context.Context, in *KeyIdRequest, opts ...grpc.CallOption) (*KeyIdResponse, error) SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*SetConfigResponse, error) Encrypt(ctx context.Context, in *EncryptRequest, opts ...grpc.CallOption) (*EncryptResponse, error) Decrypt(ctx context.Context, in *DecryptRequest, opts ...grpc.CallOption) (*DecryptResponse, error) }
WrappingClient is the client API for Wrapping 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 NewWrappingClient ¶
func NewWrappingClient(cc grpc.ClientConnInterface) WrappingClient
type WrappingServer ¶
type WrappingServer interface { Type(context.Context, *TypeRequest) (*TypeResponse, error) KeyId(context.Context, *KeyIdRequest) (*KeyIdResponse, error) SetConfig(context.Context, *SetConfigRequest) (*SetConfigResponse, error) Encrypt(context.Context, *EncryptRequest) (*EncryptResponse, error) Decrypt(context.Context, *DecryptRequest) (*DecryptResponse, error) // contains filtered or unexported methods }
WrappingServer is the server API for Wrapping service. All implementations must embed UnimplementedWrappingServer for forward compatibility