sdk

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 92

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisterFunc = func(config *go_hook.HookConfig, reconcileFunc reconcileFunc) bool {
	Registry().Add(newCommonGoHook(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 go_hook.GoHook)

func (*HookRegistry) Hooks

func (h *HookRegistry) Hooks() []HookWithMetadata

type HookWithMetadata

type HookWithMetadata struct {
	Hook     go_hook.GoHook
	Metadata *go_hook.HookMetadata
}

Jump to

Keyboard shortcuts

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