checker

package
v1.76.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	// Check evaluates the checker's condition and returns the result.
	// Called frequently during scheduler operations.
	Check() Result
}

Checker evaluates a condition and returns whether a package should be enabled.

Examples of checkers:

  • Version checker: Validates Kubernetes/Deckhouse version against constraints
  • Condition checker: Evaluates boolean conditions (e.g., bootstrap ready)
  • Custom checkers: Any domain-specific requirements

type Result

type Result struct {
	Enabled bool   `json:"enabled"`
	Reason  string `json:"reason,omitempty"`
	Message string `json:"message,omitempty"`
}

Result represents the outcome of a checker evaluation.

func Check added in v1.76.0

func Check(checkers ...Checker) Result

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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