Documentation ¶
Index ¶
- func IsInvalidConfig(err error) bool
- func IsKeyNotFound(err error) bool
- func IsKeyScheduledForDeletion(err error) bool
- type Encrypter
- func (k *Encrypter) Encrypt(ctx context.Context, key, plaintext string) (string, error)
- func (k *Encrypter) EncryptionKey(ctx context.Context, cr v1alpha1.Cluster) (string, error)
- func (e *Encrypter) EnsureCreatedEncryptionKey(ctx context.Context, cr v1alpha1.Cluster) error
- func (e *Encrypter) EnsureDeletedEncryptionKey(ctx context.Context, cr v1alpha1.Cluster) 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 (*Encrypter) EnsureDeletedEncryptionKey ¶
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.