fake

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package fake implements a fake secret store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretStore

type SecretStore struct {
	ReadKeyValuesFn   func(ctx context.Context, n store.ScopedName, s *store.Secret) error
	WriteKeyValuesFn  func(ctx context.Context, s *store.Secret, wo ...store.WriteOption) (bool, error)
	DeleteKeyValuesFn func(ctx context.Context, s *store.Secret, do ...store.DeleteOption) error
}

SecretStore is a fake SecretStore

func (*SecretStore) DeleteKeyValues

func (ss *SecretStore) DeleteKeyValues(ctx context.Context, s *store.Secret, do ...store.DeleteOption) error

DeleteKeyValues deletes key values.

func (*SecretStore) ReadKeyValues

func (ss *SecretStore) ReadKeyValues(ctx context.Context, n store.ScopedName, s *store.Secret) error

ReadKeyValues reads key values.

func (*SecretStore) WriteKeyValues

func (ss *SecretStore) WriteKeyValues(ctx context.Context, s *store.Secret, wo ...store.WriteOption) (bool, error)

WriteKeyValues writes key values.

type StoreConfig

type StoreConfig struct {
	metav1.ObjectMeta

	Config v1.SecretStoreConfig
	v1.ConditionedStatus
}

StoreConfig is a mock implementation of the StoreConfig interface.

func (*StoreConfig) DeepCopyObject

func (s *StoreConfig) DeepCopyObject() runtime.Object

DeepCopyObject returns a copy of the object as runtime.Object

func (*StoreConfig) GetObjectKind

func (s *StoreConfig) GetObjectKind() schema.ObjectKind

GetObjectKind returns schema.ObjectKind.

func (*StoreConfig) GetStoreConfig

func (s *StoreConfig) GetStoreConfig() v1.SecretStoreConfig

GetStoreConfig returns SecretStoreConfig

Jump to

Keyboard shortcuts

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