fake

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

Client is a fake client for testing.

func New

func New() *Client

New returns a fake provider/client.

func (*Client) GetSecret

GetSecret implements the provider.Provider interface.

func (*Client) GetSecretMap

func (v *Client) GetSecretMap(ctx context.Context, ref esv1alpha1.ExternalSecretDataRemoteRef) (map[string][]byte, error)

GetSecretMap imeplements the provider.Provider interface.

func (*Client) NewClient

func (v *Client) NewClient(ctx context.Context, store esv1alpha1.GenericStore, kube client.Client, namespace string) (provider.SecretsClient, error)

NewClient returns a new fake provider.

func (*Client) RegisterAs

func (v *Client) RegisterAs(provider *esv1alpha1.SecretStoreProvider)

RegisterAs registers the fake client in the schema.

func (*Client) WithGetSecret

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

WithGetSecret wraps secret data returned by this provider.

func (*Client) WithGetSecretMap

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

WithGetSecretMap wraps the secret data map returned by this fake provider.

func (*Client) WithNew

WithNew wraps the fake provider factory function.

Jump to

Keyboard shortcuts

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