Versions in this module Expand all Collapse all v2 v2.0.0 Feb 28, 2024 Changes in this version + var ErrAWSDecrypt = errors.New("unable to decrypt data key with AWS KMS Service") + var ErrAWSInit = errors.New("failed to initialize AWS KMS Service") + var ErrDataCorruptedInTransit = fmt.Errorf("decrypt: response corrupted in-transit") + var ErrKMIPClientCertificateMissing = errors.New("client certificate missing") + var ErrKMIPClientCertificatePasswordMissing = errors.New("password for client certificate is not provided") + var ErrKMIPPasswordMissing = errors.New("password is not provided") + var ErrKMIPServerCAMissing = errors.New("server CA missing") + var ErrKMIPServerNamesMissing = errors.New("server name is not provided") + var ErrLocalKeyCredentialMissing = errors.New("filename missing") + type AWSKeyIdentifier struct + AccessKey string + Endpoint string + Key string + Region string + SecretAccessKey string + SessionToken string + func (ki *AWSKeyIdentifier) DecryptKey(encryptedKey []byte) ([]byte, error) + func (ki *AWSKeyIdentifier) ValidateCredentials() error + type AzureKeyIdentifier struct + ClientID string + Environment string + KeyName string + KeyVaultEndpoint string + KeyVersion string + Secret string + TenantID string + func (ki *AzureKeyIdentifier) DecryptKey(key []byte) ([]byte, error) + func (ki *AzureKeyIdentifier) ValidateCredentials() error + type GCPKeyIdentifier struct + KeyName string + KeyRing string + Location string + ProjectID string + ServiceAccountKey string + func (ki *GCPKeyIdentifier) DecryptKey(key []byte) ([]byte, error) + func (ki *GCPKeyIdentifier) ValidateCredentials() error + type KMIPEncryptedKey struct + IV []byte + Key []byte + type KMIPKeyIdentifier struct + ClientCertificateFileName string + ClientCertificatePassword string + KeyWrapMethod KMIPKeyWrapMethod + Password string + ServerCAFileName string + ServerNames []string + ServerPort int + UniqueKeyID string + Username string + func (ki *KMIPKeyIdentifier) DecryptKey(encryptedKey []byte) ([]byte, error) + func (ki *KMIPKeyIdentifier) ValidateCredentials() error + type KMIPKeyWrapMethod string + const KMIPKeyWrapMethodEncrypt + const KMIPKeyWrapMethodGet + type KeyProvider interface + DecryptKey func(encryptedLEK []byte) ([]byte, error) + ValidateCredentials func() error + type KeyStoreIdentifier struct + Provider KeyStoreProvider + type KeyStoreProvider string + const AWS + const Azure + const GCP + const KMIP + const LocalKey + type LocalKeyIdentifier struct + Filename string + HeaderFilename string + func (ki *LocalKeyIdentifier) DecryptKey(encryptedKey []byte) ([]byte, error) + func (ki *LocalKeyIdentifier) ValidateCredentials() error Other modules containing this package github.com/fmenezes/mongodb-atlas-cli