Help us shape the future of Go! Take the 2026 Go Developer Survey

fake

package
v1.20.12 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 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
	v1.ConditionedStatus

	Config v1.SecretStoreConfig
}

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