encrypter

package
v8.0.0-rc1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KMSBackend   = "kms"
	VaultBackend = "vault"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Encrypter

type Encrypter interface {
	EncryptionKey(ctx context.Context, customObject infrastructurev1alpha2.AWSCluster) (string, error)
	Encrypt(ctx context.Context, key, plaintext string) (string, error)
	IsKeyNotFound(error) bool
}

type EncrypterMock

type EncrypterMock struct {
	IsError bool
	KeyID   string
	KeyName string
}

func (*EncrypterMock) Encrypt

func (e *EncrypterMock) Encrypt(ctx context.Context, key, plaintext string) (string, error)

func (*EncrypterMock) EncryptionKey

func (e *EncrypterMock) EncryptionKey(ctx context.Context, customObject infrastructurev1alpha2.AWSCluster) (string, error)

func (*EncrypterMock) EnsureCreatedEncryptionKey

func (e *EncrypterMock) EnsureCreatedEncryptionKey(context.Context, infrastructurev1alpha2.AWSCluster) error

func (*EncrypterMock) EnsureDeletedEncryptionKey

func (e *EncrypterMock) EnsureDeletedEncryptionKey(context.Context, infrastructurev1alpha2.AWSCluster) error

func (*EncrypterMock) IsKeyNotFound

func (e *EncrypterMock) IsKeyNotFound(err error) bool

type Interface

type Interface interface {
	Encrypter
	Resource
}

type Resource

type Resource interface {
	EnsureCreatedEncryptionKey(context.Context, infrastructurev1alpha2.AWSCluster) error
	EnsureDeletedEncryptionKey(context.Context, infrastructurev1alpha2.AWSCluster) error
}

type RoleManager

type RoleManager interface {
	EnsureCreatedAuthorizedIAMRoles(context.Context, infrastructurev1alpha2.AWSCluster) error
	EnsureDeletedAuthorizedIAMRoles(context.Context, infrastructurev1alpha2.AWSCluster) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL