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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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