fake

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 2 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(name string) (*v1.Secret, error)

GetSecret fulfills the SecretProvider interface.

Jump to

Keyboard shortcuts

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