Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RegisterFunc = func(config *go_hook.HookConfig, reconcileFunc kind.ReconcileFunc) bool { Registry().Add(kind.NewGoHook(config, reconcileFunc)) return true }
Functions ¶
func FromUnstructured ¶
func FromUnstructured(unstructuredObj *unstructured.Unstructured, obj interface{}) error
func ToUnstructured ¶
func ToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
Types ¶
type HookRegistry ¶
type HookRegistry struct {
// contains filtered or unexported fields
}
func Registry ¶
func Registry() *HookRegistry
func (*HookRegistry) Add ¶
func (h *HookRegistry) Add(hook *kind.GoHook)
func (*HookRegistry) GetGlobalHooks ¶ added in v1.3.3
func (h *HookRegistry) GetGlobalHooks() []*kind.GoHook
func (*HookRegistry) GetModuleHooks ¶ added in v1.3.3
func (h *HookRegistry) GetModuleHooks(moduleName string) []*kind.GoHook
func (*HookRegistry) Hooks ¶
func (h *HookRegistry) Hooks() []*kind.GoHook
Hooks returns all (module and global) hooks Deprecated: method exists for backward compatibility, use GetGlobalHooks or GetModuleHooks instead
Click to show internal directories.
Click to hide internal directories.