Documentation ¶
Index ¶
- type KmsKeyProvider
- func (kmsKP *KmsKeyProvider[KT]) AddMasterKey(keyID string) (model.MasterKey, error)
- func (kmsKP *KmsKeyProvider[KT]) DecryptDataKey(ctx context.Context, encryptedDataKey model.EncryptedDataKeyI, ...) (model.DataKeyI, error)
- func (kmsKP *KmsKeyProvider[KT]) DecryptDataKeyFromList(ctx context.Context, encryptedDataKeys []model.EncryptedDataKeyI, ...) (model.DataKeyI, error)
- func (kmsKP *KmsKeyProvider[KT]) MasterKeyForDecrypt(ctx context.Context, metadata model.KeyMeta) (model.MasterKey, error)
- func (kmsKP *KmsKeyProvider[KT]) MasterKeysForDecryption() []model.MasterKey
- func (kmsKP *KmsKeyProvider[KT]) MasterKeysForEncryption(_ context.Context, _ suite.EncryptionContext) (model.MasterKey, []model.MasterKey, error)
- func (kmsKP *KmsKeyProvider[KT]) NewMasterKey(ctx context.Context, keyID string) (model.MasterKey, error)
- func (kmsKP *KmsKeyProvider[KT]) ProviderID() string
- func (kmsKP *KmsKeyProvider[KT]) ProviderKind() types.ProviderKind
- func (kmsKP *KmsKeyProvider[KT]) ValidateMasterKey(keyID string) error
- func (kmsKP *KmsKeyProvider[KT]) ValidateProviderID(otherID string) error
- type KmsProvider
- type Options
- type OptionsFunc
- func WithAwsLoadOptions(optFns ...func(options *config.LoadOptions) error) OptionsFunc
- func WithClientFactory(factory model.KMSClientFactory) OptionsFunc
- func WithDiscovery() OptionsFunc
- func WithDiscoveryFilter(accountIDs []string, partition string) OptionsFunc
- func WithDiscoveryRegion(region string) OptionsFunc
- func WithKeyFactory(keyFactory model.MasterKeyFactory) OptionsFunc
- func WithKeyProvider(keyProvider model.BaseKeyProvider) OptionsFunc
- func WithMrkAwareness() OptionsFunc
- type ProviderType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KmsKeyProvider ¶
func NewWithOpts ¶
func (*KmsKeyProvider[KT]) AddMasterKey ¶
func (kmsKP *KmsKeyProvider[KT]) AddMasterKey(keyID string) (model.MasterKey, error)
func (*KmsKeyProvider[KT]) DecryptDataKey ¶
func (kmsKP *KmsKeyProvider[KT]) DecryptDataKey(ctx context.Context, encryptedDataKey model.EncryptedDataKeyI, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.DataKeyI, error)
func (*KmsKeyProvider[KT]) DecryptDataKeyFromList ¶
func (kmsKP *KmsKeyProvider[KT]) DecryptDataKeyFromList(ctx context.Context, encryptedDataKeys []model.EncryptedDataKeyI, alg *suite.AlgorithmSuite, ec suite.EncryptionContext) (model.DataKeyI, error)
DecryptDataKeyFromList iterates through EDK, calls DecryptDataKey
func (*KmsKeyProvider[KT]) MasterKeyForDecrypt ¶
func (*KmsKeyProvider[KT]) MasterKeysForDecryption ¶
func (kmsKP *KmsKeyProvider[KT]) MasterKeysForDecryption() []model.MasterKey
func (*KmsKeyProvider[KT]) MasterKeysForEncryption ¶
func (kmsKP *KmsKeyProvider[KT]) MasterKeysForEncryption(_ context.Context, _ suite.EncryptionContext) (model.MasterKey, []model.MasterKey, error)
func (*KmsKeyProvider[KT]) NewMasterKey ¶
func (*KmsKeyProvider[KT]) ProviderID ¶
func (kmsKP *KmsKeyProvider[KT]) ProviderID() string
func (*KmsKeyProvider[KT]) ProviderKind ¶
func (kmsKP *KmsKeyProvider[KT]) ProviderKind() types.ProviderKind
func (*KmsKeyProvider[KT]) ValidateMasterKey ¶
func (kmsKP *KmsKeyProvider[KT]) ValidateMasterKey(keyID string) error
func (*KmsKeyProvider[KT]) ValidateProviderID ¶
func (kmsKP *KmsKeyProvider[KT]) ValidateProviderID(otherID string) error
type KmsProvider ¶
type KmsProvider interface { model.MasterKeyProvider // contains filtered or unexported methods }
type OptionsFunc ¶
func WithAwsLoadOptions ¶
func WithAwsLoadOptions(optFns ...func(options *config.LoadOptions) error) OptionsFunc
func WithClientFactory ¶
func WithClientFactory(factory model.KMSClientFactory) OptionsFunc
func WithDiscovery ¶
func WithDiscovery() OptionsFunc
func WithDiscoveryFilter ¶
func WithDiscoveryFilter(accountIDs []string, partition string) OptionsFunc
func WithDiscoveryRegion ¶
func WithDiscoveryRegion(region string) OptionsFunc
func WithKeyFactory ¶
func WithKeyFactory(keyFactory model.MasterKeyFactory) OptionsFunc
func WithKeyProvider ¶
func WithKeyProvider(keyProvider model.BaseKeyProvider) OptionsFunc
func WithMrkAwareness ¶
func WithMrkAwareness() OptionsFunc
type ProviderType ¶
type ProviderType int
const ( StrictKmsProvider ProviderType = iota // Default Strict KMS Provider MrkAwareStrictKmsProvider // MRK-Aware Strict KMS Provider DiscoveryKmsProvider // Discovery-Enabled KMS Provider MrkAwareDiscoveryKmsProvider // MRK-Aware Discovery-Enabled KMS Provider )
func (ProviderType) String ¶
func (k ProviderType) String() string
Click to show internal directories.
Click to hide internal directories.