checker

package
v1.74.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 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   // Whether the package should be enabled based on this check
	Reason  string // Human-readable reason (typically set when Enabled=false)
}

Result represents the outcome of a checker evaluation.

Directories

Path Synopsis
Package dependency provides a checker for validating package dependencies.
Package dependency provides a checker for validating package dependencies.

Jump to

Keyboard shortcuts

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