Documentation ¶
Index ¶
- type FakeSecretsService
- func (f FakeSecretsService) CurrentProviderID() string
- func (f FakeSecretsService) Decrypt(_ context.Context, payload []byte) ([]byte, error)
- func (f FakeSecretsService) DecryptJsonData(_ context.Context, sjd map[string][]byte) (map[string]string, error)
- func (f FakeSecretsService) Encrypt(_ context.Context, payload []byte, _ secrets.EncryptionOptions) ([]byte, error)
- func (f FakeSecretsService) EncryptJsonData(_ context.Context, kv map[string]string, _ secrets.EncryptionOptions) (map[string][]byte, error)
- func (f FakeSecretsService) GetDecryptedValue(_ context.Context, sjd map[string][]byte, key, fallback string) string
- func (f FakeSecretsService) GetProviders() map[string]secrets.Provider
- func (f FakeSecretsService) ReEncryptDataKeys(_ context.Context) error
- func (f FakeSecretsService) RegisterProvider(_ string, _ secrets.Provider)
- func (f FakeSecretsService) RotateDataKeys(_ context.Context) error
- type FakeSecretsStore
- func (f FakeSecretsStore) CreateDataKey(_ context.Context, dataKey *secrets.DataKey) error
- func (f FakeSecretsStore) DeleteDataKey(_ context.Context, id string) error
- func (f FakeSecretsStore) DisableDataKeys(_ context.Context) error
- func (f FakeSecretsStore) GetAllDataKeys(_ context.Context) ([]*secrets.DataKey, error)
- func (f FakeSecretsStore) GetCurrentDataKey(_ context.Context, label string) (*secrets.DataKey, error)
- func (f FakeSecretsStore) GetDataKey(_ context.Context, id string) (*secrets.DataKey, error)
- func (f FakeSecretsStore) ReEncryptDataKeys(_ context.Context, _ map[secrets.ProviderID]secrets.Provider, ...) error
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) DecryptJsonData ¶
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 (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 (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 (FakeSecretsStore) GetCurrentDataKey ¶
func (FakeSecretsStore) GetDataKey ¶
func (FakeSecretsStore) ReEncryptDataKeys ¶
func (f FakeSecretsStore) ReEncryptDataKeys(_ context.Context, _ map[secrets.ProviderID]secrets.Provider, _ secrets.ProviderID) error
Click to show internal directories.
Click to hide internal directories.