test

package
v2.24.14 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultOrOverride

func DefaultOrOverride(generator map[string]interface{}) func(configVar *providerconfig.GlobalSecretKeySelector, key string) (string, error)

mock that returns default value when reading secret or value specify in generator map. Default value is key + "-value" generator is map of key (of GlobalSecretKeySelector) and value to return for this key. Value can be an error or a string.

func MissingKeyErr

func MissingKeyErr(key string) error

return an error with message: secret "default/the-secret" has no key "<key>".

func ShouldNotBeCalled

func ShouldNotBeCalled(configVar *providerconfig.GlobalSecretKeySelector, key string) (string, error)

mock that raises an error when try to read secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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