fake

package
Version: v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretProviderImpl

type SecretProviderImpl struct {
	// contains filtered or unexported fields
}

SecretProviderImpl is an implementation of SecretProvider for testing purposes.

func NewProvider

func NewProvider(namespace string, secrets ...*v1.Secret) *SecretProviderImpl

NewProvider creates a fake secret provider for testing returning the secrets provided

func (*SecretProviderImpl) GetSecret

func (p *SecretProviderImpl) GetSecret(ctx context.Context, name string) (*v1.Secret, error)

GetSecret fulfills the SecretProvider interface.

Source Files

Jump to

Keyboard shortcuts

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