sdk

package
v1.5.0-slog1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 3 modules, 98 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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