providers

package
v1.1.4-0...-83a8c6e Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptionClient

type EncryptionClient interface {
	Decrypt(data []byte) ([]byte, error)
	Encrypt(data []byte) ([]byte, error)
	Version() *pb.VersionResponse
}

EncryptionClient is the main interface for provider client.

type KeyManagementService

type KeyManagementService interface {
	Decrypt(context.Context, *pb.DecryptRequest) (*pb.DecryptResponse, error)
	Encrypt(context.Context, *pb.EncryptRequest) (*pb.EncryptResponse, error)
	Version(context.Context, *pb.VersionRequest) (*pb.VersionResponse, error)
}

KeyManagementService is the main interface for gRPC server.

type KeyManagementServiceServer

type KeyManagementServiceServer struct {
	Client EncryptionClient
}

KeyManagementServiceServer base implementation if gRPC server.

func (*KeyManagementServiceServer) Decrypt

Decrypt decryption requet handler.

func (*KeyManagementServiceServer) Encrypt

Encrypt encryption requet handler.

func (*KeyManagementServiceServer) Version

Version version of gRPS server.

Jump to

Keyboard shortcuts

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