registry

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegisterFunc = func(config *pkg.HookConfig, f pkg.ReconcileFunc) bool {
	Registry().Add(&pkg.Hook{Config: config, ReconcileFunc: f})
	return true
}
View Source
var RegisterReadinessFunc = func(config *pkg.HookConfig, f pkg.ReconcileFunc) bool {
	Registry().Add(&pkg.Hook{Config: config, ReconcileFunc: f})
	return true
}

Functions

This section is empty.

Types

type HookRegistry

type HookRegistry struct {
	// contains filtered or unexported fields
}

func Registry

func Registry() *HookRegistry

use it only in controller

func (*HookRegistry) Add

func (h *HookRegistry) Add(hook *pkg.Hook)

func (*HookRegistry) Hooks

func (h *HookRegistry) Hooks() []*pkg.Hook

Hooks returns all hooks

Directories

Path Synopsis
test

Jump to

Keyboard shortcuts

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