package
0.0.0-20180605162713-ea02baacea2f
Repository: https://github.com/imjasonh/elafros.git
Documentation: pkg.go.dev
# Functions
ExpectNormalEventDelivery returns a hook function that can be passed to a Hooks.OnCreate() call to verify that an event of type Normal was created matching the given regular expression.
ExpectWarningEventDelivery returns a hook function that can be passed to a Hooks.OnCreate() call to verify that an event of type Warning was created matching the given regular expression.
KeyOrDie returns the string key of the Kubernetes object or panics if a key cannot be generated.
NewHooks returns a Hooks struct that can be used to attach hooks to one or more fake clients and wait for all hooks to complete.TODO(grantr): Allow validating that a hook never fires.
# Constants
HookComplete indicates the hook function completed, and WaitForHooks should not wait for it.
HookIncomplete indicates the hook function is incomplete, and WaitForHooks should wait for it to complete.
# Type aliases
CreateHookFunc is a function for handling a Create hook.
DeleteHookFunc is a function for handling a delete hook.
HookResult is the return value of hook functions.
UpdateHookFunc is a function for handling an update hook.