hooks

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PreStartHook

type PreStartHook interface {
	// Run executes the hook's logic. If an error is returned, the controller
	// startup will be aborted.
	Run(ctx context.Context) error

	// Name returns a human-readable name for the hook, used in logging.
	Name() string
}

PreStartHook defines a hook that should be run before the controller starts working. Pre-start hooks are used for validation, initialization, and safety checks that must pass before the controller begins processing resources.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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