Documentation ¶
Index ¶
- type PluginV1
- func (p *PluginV1) Decrypt(ctx context.Context, request *pb.DecryptRequest) (*pb.DecryptResponse, error)
- func (p *PluginV1) Encrypt(ctx context.Context, request *pb.EncryptRequest) (*pb.EncryptResponse, error)
- func (p *PluginV1) Health() error
- func (p *PluginV1) Register(s *grpc.Server)
- func (p *PluginV1) Version(ctx context.Context, request *pb.VersionRequest) (*pb.VersionResponse, error)
- type PluginV2
- func (p *PluginV2) Decrypt(ctx context.Context, request *pb.DecryptRequest) (*pb.DecryptResponse, error)
- func (p *PluginV2) Encrypt(ctx context.Context, request *pb.EncryptRequest) (*pb.EncryptResponse, error)
- func (p *PluginV2) Health() error
- func (p *PluginV2) Register(s *grpc.Server)
- func (p *PluginV2) Status(ctx context.Context, _ *pb.StatusRequest) (*pb.StatusResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginV1 ¶
PluginV1 a kms plugin wrapper.
func (*PluginV1) Decrypt ¶
func (p *PluginV1) Decrypt(ctx context.Context, request *pb.DecryptRequest) (*pb.DecryptResponse, error)
nolint: staticcheck
func (*PluginV1) Encrypt ¶
func (p *PluginV1) Encrypt(ctx context.Context, request *pb.EncryptRequest) (*pb.EncryptResponse, error)
nolint: staticcheck
func (*PluginV1) Health ¶ added in v1.0.0
Health sends a simple plaintext for encryption and then compares the decrypted value. nolint: staticcheck
func (*PluginV1) Version ¶
func (p *PluginV1) Version(ctx context.Context, request *pb.VersionRequest) (*pb.VersionResponse, error)
nolint: staticcheck
type PluginV2 ¶
PluginV2 a kms plugin wrapper.
func (*PluginV2) Decrypt ¶
func (p *PluginV2) Decrypt(ctx context.Context, request *pb.DecryptRequest) (*pb.DecryptResponse, error)
func (*PluginV2) Encrypt ¶
func (p *PluginV2) Encrypt(ctx context.Context, request *pb.EncryptRequest) (*pb.EncryptResponse, error)
func (*PluginV2) Health ¶
Health sends a simple plaintext for encryption and then compares the decrypted value.
func (*PluginV2) Status ¶
func (p *PluginV2) Status(ctx context.Context, _ *pb.StatusRequest) (*pb.StatusResponse, error)
Status performs a simple health check and returns ok if encryption / decryption was successful https://kubernetes.io/docs/tasks/administer-cluster/kms-provider/#developing-a-kms-plugin-gRPC-server-notes-kms-v2
Click to show internal directories.
Click to hide internal directories.