sdk

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 92

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

Jump to

Keyboard shortcuts

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