encrypter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 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 v1alpha1.Cluster) (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 v1alpha1.Cluster) (string, error)

func (*EncrypterMock) EnsureCreatedEncryptionKey

func (e *EncrypterMock) EnsureCreatedEncryptionKey(context.Context, v1alpha1.Cluster) error

func (*EncrypterMock) EnsureDeletedEncryptionKey

func (e *EncrypterMock) EnsureDeletedEncryptionKey(context.Context, v1alpha1.Cluster) 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, v1alpha1.Cluster) error
	EnsureDeletedEncryptionKey(context.Context, v1alpha1.Cluster) error
}

type RoleManager

type RoleManager interface {
	EnsureCreatedAuthorizedIAMRoles(context.Context, v1alpha1.Cluster) error
	EnsureDeletedAuthorizedIAMRoles(context.Context, v1alpha1.Cluster) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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