Documentation ¶
Index ¶
- type Client
- func (v *Client) GetSecret(ctx context.Context, ref esv1alpha1.ExternalSecretDataRemoteRef) ([]byte, error)
- func (v *Client) GetSecretMap(ctx context.Context, ref esv1alpha1.ExternalSecretDataRemoteRef) (map[string][]byte, error)
- func (v *Client) NewClient(ctx context.Context, store esv1alpha1.GenericStore, kube client.Client, ...) (provider.SecretsClient, error)
- func (v *Client) RegisterAs(provider *esv1alpha1.SecretStoreProvider)
- func (v *Client) WithGetSecret(secData []byte, err error) *Client
- func (v *Client) WithGetSecretMap(secData map[string][]byte, err error) *Client
- func (v *Client) WithNew(...) *Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { NewFn func(context.Context, esv1alpha1.GenericStore, client.Client, string) (provider.SecretsClient, error) GetSecretFn func(context.Context, esv1alpha1.ExternalSecretDataRemoteRef) ([]byte, error) GetSecretMapFn func(context.Context, esv1alpha1.ExternalSecretDataRemoteRef) (map[string][]byte, error) }
Client is a fake client for testing.
func (*Client) GetSecret ¶
func (v *Client) GetSecret(ctx context.Context, ref esv1alpha1.ExternalSecretDataRemoteRef) ([]byte, error)
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 ¶
WithGetSecret wraps secret data returned by this provider.
func (*Client) WithGetSecretMap ¶
WithGetSecretMap wraps the secret data map returned by this fake provider.
func (*Client) WithNew ¶
func (v *Client) WithNew(f func(context.Context, esv1alpha1.GenericStore, client.Client, string) (provider.SecretsClient, error)) *Client
WithNew wraps the fake provider factory function.
Click to show internal directories.
Click to hide internal directories.