Documentation ¶
Overview ¶
Package gcp implements a KMS backend for Google Cloud KMS.
The following permissions are required for the service account used to authenticate with GCP:
cloudkms.cryptoKeyVersions.create
cloudkms.cryptoKeyVersions.update
cloudkms.cryptoKeyVersions.useToDecrypt
cloudkms.cryptoKeyVersions.useToEncrypt
cloudkms.importJobs.create
cloudkms.importJobs.get
cloudkms.importJobs.useToImport
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KMSClient ¶
type KMSClient struct {
// contains filtered or unexported fields
}
KMSClient implements the CloudKMS interface for Google Cloud Platform.
func New ¶
func New(ctx context.Context, projectID, locationID, keyRingID string, store kmsInterface.Storage, protectionLvl kmspb.ProtectionLevel, kekID string, opts ...gax.CallOption) (*KMSClient, error)
New initializes a KMS client for Google Cloud Platform.
Click to show internal directories.
Click to hide internal directories.