plugin

package module
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MPL-2.0 Imports: 24 Imported by: 8

Documentation

Index

Constants

View Source
const (
	Wrapping_Type_FullMethodName      = "/github.com.hashicorp.go.kms.wrapping.plugin.v2.Wrapping/Type"
	Wrapping_KeyId_FullMethodName     = "/github.com.hashicorp.go.kms.wrapping.plugin.v2.Wrapping/KeyId"
	Wrapping_SetConfig_FullMethodName = "/github.com.hashicorp.go.kms.wrapping.plugin.v2.Wrapping/SetConfig"
	Wrapping_Encrypt_FullMethodName   = "/github.com.hashicorp.go.kms.wrapping.plugin.v2.Wrapping/Encrypt"
	Wrapping_Decrypt_FullMethodName   = "/github.com.hashicorp.go.kms.wrapping.plugin.v2.Wrapping/Decrypt"
	Wrapping_Init_FullMethodName      = "/github.com.hashicorp.go.kms.wrapping.plugin.v2.Wrapping/Init"
	Wrapping_Finalize_FullMethodName  = "/github.com.hashicorp.go.kms.wrapping.plugin.v2.Wrapping/Finalize"
	Wrapping_HmacKeyId_FullMethodName = "/github.com.hashicorp.go.kms.wrapping.plugin.v2.Wrapping/HmacKeyId"
	Wrapping_KeyBytes_FullMethodName  = "/github.com.hashicorp.go.kms.wrapping.plugin.v2.Wrapping/KeyBytes"
)

Variables

View Source
var File_plugin_github_com_hashicorp_go_kms_wrapping_plugin_v2_proto protoreflect.FileDescriptor
View Source
var HandshakeConfig = gp.HandshakeConfig{
	MagicCookieKey:   "HASHICORP_GKW_PLUGIN",
	MagicCookieValue: "wrapper",
}

HandshakeConfig is a shared config that can be used regardless of wrapper, to avoid having to know type-specific things about each plugin

View Source
var Wrapping_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.hashicorp.go.kms.wrapping.plugin.v2.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,
		},
		{
			MethodName: "Init",
			Handler:    _Wrapping_Init_Handler,
		},
		{
			MethodName: "Finalize",
			Handler:    _Wrapping_Finalize_Handler,
		},
		{
			MethodName: "HmacKeyId",
			Handler:    _Wrapping_HmacKeyId_Handler,
		},
		{
			MethodName: "KeyBytes",
			Handler:    _Wrapping_KeyBytes_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin/github.com.hashicorp.go.kms.wrapping.plugin.v2.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 NewWrapperClient

func NewWrapperClient(pluginPath string, opt ...Option) (*gp.Client, error)

func NewWrapperServer

func NewWrapperServer(impl wrapping.Wrapper) (*wrapper, error)

func RegisterWrappingServer

func RegisterWrappingServer(s grpc.ServiceRegistrar, srv WrappingServer)

func ServePlugin

func ServePlugin(wrapper wrapping.Wrapper, opt ...Option) error

ServePlugin is a generic function to start serving a wrapper as a plugin

func TestPlugin

func TestPlugin(
	t *testing.T,
	pluginLoc string,
	opt ...Option,
) (pluginWrapper wrapping.Wrapper, cleanup func())

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 HmacKeyIdRequest

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

func (*HmacKeyIdRequest) Descriptor deprecated

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

Deprecated: Use HmacKeyIdRequest.ProtoReflect.Descriptor instead.

func (*HmacKeyIdRequest) ProtoMessage

func (*HmacKeyIdRequest) ProtoMessage()

func (*HmacKeyIdRequest) ProtoReflect

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

func (*HmacKeyIdRequest) Reset

func (x *HmacKeyIdRequest) Reset()

func (*HmacKeyIdRequest) String

func (x *HmacKeyIdRequest) String() string

type HmacKeyIdResponse

type HmacKeyIdResponse struct {
	KeyId string `protobuf:"bytes,10,opt,name=key_id,proto3" json:"key_id,omitempty"`
	// contains filtered or unexported fields
}

func (*HmacKeyIdResponse) Descriptor deprecated

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

Deprecated: Use HmacKeyIdResponse.ProtoReflect.Descriptor instead.

func (*HmacKeyIdResponse) GetKeyId

func (x *HmacKeyIdResponse) GetKeyId() string

func (*HmacKeyIdResponse) ProtoMessage

func (*HmacKeyIdResponse) ProtoMessage()

func (*HmacKeyIdResponse) ProtoReflect

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

func (*HmacKeyIdResponse) Reset

func (x *HmacKeyIdResponse) Reset()

func (*HmacKeyIdResponse) String

func (x *HmacKeyIdResponse) String() string

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 KeyBytesRequest added in v2.0.2

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

func (*KeyBytesRequest) Descriptor deprecated added in v2.0.2

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

Deprecated: Use KeyBytesRequest.ProtoReflect.Descriptor instead.

func (*KeyBytesRequest) ProtoMessage added in v2.0.2

func (*KeyBytesRequest) ProtoMessage()

func (*KeyBytesRequest) ProtoReflect added in v2.0.2

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

func (*KeyBytesRequest) Reset added in v2.0.2

func (x *KeyBytesRequest) Reset()

func (*KeyBytesRequest) String added in v2.0.2

func (x *KeyBytesRequest) String() string

type KeyBytesResponse added in v2.0.2

type KeyBytesResponse struct {
	KeyBytes []byte `protobuf:"bytes,10,opt,name=key_bytes,proto3" json:"key_bytes,omitempty"`
	// contains filtered or unexported fields
}

func (*KeyBytesResponse) Descriptor deprecated added in v2.0.2

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

Deprecated: Use KeyBytesResponse.ProtoReflect.Descriptor instead.

func (*KeyBytesResponse) GetKeyBytes added in v2.0.2

func (x *KeyBytesResponse) GetKeyBytes() []byte

func (*KeyBytesResponse) ProtoMessage added in v2.0.2

func (*KeyBytesResponse) ProtoMessage()

func (*KeyBytesResponse) ProtoReflect added in v2.0.2

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

func (*KeyBytesResponse) Reset added in v2.0.2

func (x *KeyBytesResponse) Reset()

func (*KeyBytesResponse) String added in v2.0.2

func (x *KeyBytesResponse) 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 Option

type Option func() interface{}

Option - a type that wraps an interface for compile-time safety but can contain an option for this package or for wrappers implementing this interface.

func WithLogger

func WithLogger(with hclog.Logger) Option

WithLogger allows passing a logger to the plugin library for debugging

func WithSecureConfig

func WithSecureConfig(with *gp.SecureConfig) Option

WithSecureConfig allows passing a secure configuration param

type OptionFunc

type OptionFunc func(*options)

OptionFunc - a type for funcs that operate on the shared Options struct. The options below explicitly wrap this so that we can switch on it when parsing opts for various wrappers.

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 SignRequest added in v2.0.4

type SignRequest struct {
	Options *v2.Options `protobuf:"bytes,10,opt,name=options,proto3" json:"options,omitempty"`
	Msg     []byte      `protobuf:"bytes,20,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*SignRequest) Descriptor deprecated added in v2.0.4

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

Deprecated: Use SignRequest.ProtoReflect.Descriptor instead.

func (*SignRequest) GetMsg added in v2.0.4

func (x *SignRequest) GetMsg() []byte

func (*SignRequest) GetOptions added in v2.0.4

func (x *SignRequest) GetOptions() *v2.Options

func (*SignRequest) ProtoMessage added in v2.0.4

func (*SignRequest) ProtoMessage()

func (*SignRequest) ProtoReflect added in v2.0.4

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

func (*SignRequest) Reset added in v2.0.4

func (x *SignRequest) Reset()

func (*SignRequest) String added in v2.0.4

func (x *SignRequest) String() string

type SignResponse added in v2.0.4

type SignResponse struct {
	SigInfo *v2.SigInfo `protobuf:"bytes,10,opt,name=sig_info,json=sigInfo,proto3" json:"sig_info,omitempty"`
	// contains filtered or unexported fields
}

func (*SignResponse) Descriptor deprecated added in v2.0.4

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

Deprecated: Use SignResponse.ProtoReflect.Descriptor instead.

func (*SignResponse) GetSigInfo added in v2.0.4

func (x *SignResponse) GetSigInfo() *v2.SigInfo

func (*SignResponse) ProtoMessage added in v2.0.4

func (*SignResponse) ProtoMessage()

func (*SignResponse) ProtoReflect added in v2.0.4

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

func (*SignResponse) Reset added in v2.0.4

func (x *SignResponse) Reset()

func (*SignResponse) String added in v2.0.4

func (x *SignResponse) 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 string `protobuf:"bytes,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() string

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 UnimplementedWrappingServer

type UnimplementedWrappingServer struct {
}

UnimplementedWrappingServer must be embedded to have forward compatible implementations.

func (UnimplementedWrappingServer) Decrypt

func (UnimplementedWrappingServer) Encrypt

func (UnimplementedWrappingServer) Finalize

func (UnimplementedWrappingServer) HmacKeyId

func (UnimplementedWrappingServer) Init

func (UnimplementedWrappingServer) KeyBytes added in v2.0.2

func (UnimplementedWrappingServer) KeyId

func (UnimplementedWrappingServer) SetConfig

func (UnimplementedWrappingServer) Type

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 VerifyRequest added in v2.0.4

type VerifyRequest struct {
	Options *v2.Options `protobuf:"bytes,10,opt,name=options,proto3" json:"options,omitempty"`
	Msg     []byte      `protobuf:"bytes,20,opt,name=msg,proto3" json:"msg,omitempty"`
	SigInfo *v2.SigInfo `protobuf:"bytes,30,opt,name=sig_info,json=sigInfo,proto3" json:"sig_info,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyRequest) Descriptor deprecated added in v2.0.4

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

Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead.

func (*VerifyRequest) GetMsg added in v2.0.4

func (x *VerifyRequest) GetMsg() []byte

func (*VerifyRequest) GetOptions added in v2.0.4

func (x *VerifyRequest) GetOptions() *v2.Options

func (*VerifyRequest) GetSigInfo added in v2.0.4

func (x *VerifyRequest) GetSigInfo() *v2.SigInfo

func (*VerifyRequest) ProtoMessage added in v2.0.4

func (*VerifyRequest) ProtoMessage()

func (*VerifyRequest) ProtoReflect added in v2.0.4

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

func (*VerifyRequest) Reset added in v2.0.4

func (x *VerifyRequest) Reset()

func (*VerifyRequest) String added in v2.0.4

func (x *VerifyRequest) String() string

type VerifyResponse added in v2.0.4

type VerifyResponse struct {
	Verified bool `protobuf:"varint,10,opt,name=verified,proto3" json:"verified,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyResponse) Descriptor deprecated added in v2.0.4

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

Deprecated: Use VerifyResponse.ProtoReflect.Descriptor instead.

func (*VerifyResponse) GetVerified added in v2.0.4

func (x *VerifyResponse) GetVerified() bool

func (*VerifyResponse) ProtoMessage added in v2.0.4

func (*VerifyResponse) ProtoMessage()

func (*VerifyResponse) ProtoReflect added in v2.0.4

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

func (*VerifyResponse) Reset added in v2.0.4

func (x *VerifyResponse) Reset()

func (*VerifyResponse) String added in v2.0.4

func (x *VerifyResponse) String() string

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)
	// Init & finalize functions
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*InitResponse, error)
	Finalize(ctx context.Context, in *FinalizeRequest, opts ...grpc.CallOption) (*FinalizeResponse, error)
	// HMAC related functions
	HmacKeyId(ctx context.Context, in *HmacKeyIdRequest, opts ...grpc.CallOption) (*HmacKeyIdResponse, error)
	// KeyBytes function
	KeyBytes(ctx context.Context, in *KeyBytesRequest, opts ...grpc.CallOption) (*KeyBytesResponse, 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)
	// Init & finalize functions
	Init(context.Context, *InitRequest) (*InitResponse, error)
	Finalize(context.Context, *FinalizeRequest) (*FinalizeResponse, error)
	// HMAC related functions
	HmacKeyId(context.Context, *HmacKeyIdRequest) (*HmacKeyIdResponse, error)
	// KeyBytes function
	KeyBytes(context.Context, *KeyBytesRequest) (*KeyBytesResponse, error)
	// contains filtered or unexported methods
}

WrappingServer is the server API for Wrapping service. All implementations must embed UnimplementedWrappingServer for forward compatibility

Directories

Path Synopsis
testplugins

Jump to

Keyboard shortcuts

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