Documentation ¶
Index ¶
- Constants
- func GetMetaData(resource string) string
- type KMSServer
- func (s *KMSServer) Decrypt(ctx context.Context, request *k8spb.DecryptRequest) (*k8spb.DecryptResponse, error)
- func (s *KMSServer) Encrypt(ctx context.Context, request *k8spb.EncryptRequest) (*k8spb.EncryptResponse, error)
- func (s *KMSServer) StartRPCServer() (*grpc.Server, chan error)
- func (s *KMSServer) Version(ctx context.Context, request *k8spb.VersionRequest) (*k8spb.VersionResponse, error)
Constants ¶
View Source
const ( // Version is the current kms api version Version = "v1beta1" // HTTPS protocol HTTPS = "https" )
View Source
const ( //MetadataURL is the ECS metadata server addr MetadataURL = "http://100.100.100.200/latest/meta-data/" RegionID = "region-id" )
Variables ¶
This section is empty.
Functions ¶
func GetMetaData ¶
GetMetaData return host regionid, zoneid
Types ¶
type KMSServer ¶
KMSServer is t CloudKMS plugin for K8S.
func (*KMSServer) Decrypt ¶
func (s *KMSServer) Decrypt(ctx context.Context, request *k8spb.DecryptRequest) (*k8spb.DecryptResponse, error)
Decrypt execute decryption operation in KMS providers.
func (*KMSServer) Encrypt ¶
func (s *KMSServer) Encrypt(ctx context.Context, request *k8spb.EncryptRequest) (*k8spb.EncryptResponse, error)
Encrypt execute encryption operation in KMS providers.
func (*KMSServer) StartRPCServer ¶
StartRPCServer starts gRPC server or dies.
func (*KMSServer) Version ¶
func (s *KMSServer) Version(ctx context.Context, request *k8spb.VersionRequest) (*k8spb.VersionResponse, error)
Version return the current api version
Click to show internal directories.
Click to hide internal directories.