Documentation ¶
Index ¶
- type EncryptionClient
- type KeyManagementService
- type KeyManagementServiceServer
- func (k *KeyManagementServiceServer) Decrypt(ctx context.Context, data *pb.DecryptRequest) (*pb.DecryptResponse, error)
- func (k *KeyManagementServiceServer) Encrypt(ctx context.Context, data *pb.EncryptRequest) (*pb.EncryptResponse, error)
- func (k *KeyManagementServiceServer) Version(context.Context, *pb.VersionRequest) (*pb.VersionResponse, error)
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 ¶
func (k *KeyManagementServiceServer) Decrypt(ctx context.Context, data *pb.DecryptRequest) (*pb.DecryptResponse, error)
Decrypt decryption requet handler.
func (*KeyManagementServiceServer) Encrypt ¶
func (k *KeyManagementServiceServer) Encrypt(ctx context.Context, data *pb.EncryptRequest) (*pb.EncryptResponse, error)
Encrypt encryption requet handler.
func (*KeyManagementServiceServer) Version ¶
func (k *KeyManagementServiceServer) Version(context.Context, *pb.VersionRequest) (*pb.VersionResponse, error)
Version version of gRPS server.
Click to show internal directories.
Click to hide internal directories.