fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	NewFn func(context.Context, logr.Logger, client.Client, client.Reader, smv1alpha1.GenericStore,
		string) (*Factory, error)
	GetSecretFn    func(context.Context, smv1alpha1.RemoteReference) ([]byte, error)
	GetSecretMapFn func(context.Context, smv1alpha1.RemoteReference) (map[string][]byte, error)
}

func New

func New() *Factory

func (*Factory) GetSecret

func (v *Factory) GetSecret(ctx context.Context, ref smv1alpha1.RemoteReference) ([]byte, error)

func (*Factory) GetSecretMap

func (v *Factory) GetSecretMap(ctx context.Context, ref smv1alpha1.RemoteReference) (map[string][]byte, error)

func (*Factory) New

func (v *Factory) New(ctx context.Context, log logr.Logger, store smv1alpha1.GenericStore, kubeClient client.Client, kubeReader client.Reader, namespace string) (store.Client, error)

func (*Factory) WithGetSecret

func (v *Factory) WithGetSecret(secData []byte, err error) *Factory

func (*Factory) WithGetSecretMap

func (v *Factory) WithGetSecretMap(secData map[string][]byte, err error) *Factory

Jump to

Keyboard shortcuts

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