fakes

package
v0.0.0-...-fb7f86c Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeSecretsService

type FakeSecretsService struct{}

func NewFakeSecretsService

func NewFakeSecretsService() FakeSecretsService

func (FakeSecretsService) CurrentProviderID

func (f FakeSecretsService) CurrentProviderID() string

func (FakeSecretsService) Decrypt

func (f FakeSecretsService) Decrypt(_ context.Context, payload []byte) ([]byte, error)

func (FakeSecretsService) DecryptJsonData

func (f FakeSecretsService) DecryptJsonData(_ context.Context, sjd map[string][]byte) (map[string]string, error)

func (FakeSecretsService) Encrypt

func (f FakeSecretsService) Encrypt(_ context.Context, payload []byte, _ secrets.EncryptionOptions) ([]byte, error)

func (FakeSecretsService) EncryptJsonData

func (f FakeSecretsService) EncryptJsonData(_ context.Context, kv map[string]string, _ secrets.EncryptionOptions) (map[string][]byte, error)

func (FakeSecretsService) GetDecryptedValue

func (f FakeSecretsService) GetDecryptedValue(_ context.Context, sjd map[string][]byte, key, fallback string) string

func (FakeSecretsService) GetProviders

func (f FakeSecretsService) GetProviders() map[string]secrets.Provider

func (FakeSecretsService) ReEncryptDataKeys

func (f FakeSecretsService) ReEncryptDataKeys(_ context.Context) error

func (FakeSecretsService) RegisterProvider

func (f FakeSecretsService) RegisterProvider(_ string, _ secrets.Provider)

func (FakeSecretsService) RotateDataKeys

func (f FakeSecretsService) RotateDataKeys(_ context.Context) error

type FakeSecretsStore

type FakeSecretsStore struct {
	// contains filtered or unexported fields
}

func NewFakeSecretsStore

func NewFakeSecretsStore() FakeSecretsStore

func (FakeSecretsStore) CreateDataKey

func (f FakeSecretsStore) CreateDataKey(_ context.Context, dataKey *secrets.DataKey) error

func (FakeSecretsStore) DeleteDataKey

func (f FakeSecretsStore) DeleteDataKey(_ context.Context, id string) error

func (FakeSecretsStore) DisableDataKeys

func (f FakeSecretsStore) DisableDataKeys(_ context.Context) error

func (FakeSecretsStore) GetAllDataKeys

func (f FakeSecretsStore) GetAllDataKeys(_ context.Context) ([]*secrets.DataKey, error)

func (FakeSecretsStore) GetCurrentDataKey

func (f FakeSecretsStore) GetCurrentDataKey(_ context.Context, label string) (*secrets.DataKey, error)

func (FakeSecretsStore) GetDataKey

func (f FakeSecretsStore) GetDataKey(_ context.Context, id string) (*secrets.DataKey, error)

func (FakeSecretsStore) ReEncryptDataKeys

Jump to

Keyboard shortcuts

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