registry

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 6 modules, 13 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 *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