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 ¶
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.
Click to show internal directories.
Click to hide internal directories.