Documentation ¶
Index ¶
- func IsInvalidConfig(err error) bool
- func IsKeyNotFound(err error) bool
- func IsKeyScheduledForDeletion(err error) bool
- type Cache
- type Encrypter
- func (e *Encrypter) Encrypt(ctx context.Context, key, plaintext string) (string, error)
- func (e *Encrypter) EncryptionKey(ctx context.Context, id string) (string, error)
- func (e *Encrypter) EnsureCreatedEncryptionKey(ctx context.Context, cr infrastructurev1alpha3.AWSCluster) error
- func (e *Encrypter) EnsureDeletedEncryptionKey(ctx context.Context, cr infrastructurev1alpha3.AWSCluster) error
- func (e *Encrypter) IsKeyNotFound(err error) bool
- type EncrypterConfig
- type KMSClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsKeyScheduledForDeletion ¶
IsKeyScheduledForDeletion asserts keyScheduledForDeletionError.
Types ¶
type Encrypter ¶
type Encrypter struct {
// contains filtered or unexported fields
}
func NewEncrypter ¶
func NewEncrypter(c *EncrypterConfig) (*Encrypter, error)
func (*Encrypter) EncryptionKey ¶
func (*Encrypter) EnsureCreatedEncryptionKey ¶
func (e *Encrypter) EnsureCreatedEncryptionKey(ctx context.Context, cr infrastructurev1alpha3.AWSCluster) error
func (*Encrypter) EnsureDeletedEncryptionKey ¶
func (e *Encrypter) EnsureDeletedEncryptionKey(ctx context.Context, cr infrastructurev1alpha3.AWSCluster) error
func (*Encrypter) IsKeyNotFound ¶
type EncrypterConfig ¶
type EncrypterConfig struct { Logger micrologger.Logger InstallationName string }
type KMSClient ¶
type KMSClient interface {
Encrypt(*kms.EncryptInput) (*kms.EncryptOutput, error)
}
Click to show internal directories.
Click to hide internal directories.