Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct { Name string // contains filtered or unexported fields }
Check represents a parsed readiness check CEL expression.
func ParseCheck ¶
ParseCheck parses the given CEL expression in the context of an environment, and returns a reusable execution handle.
func (*Check) Eval ¶
func (r *Check) Eval(ctx context.Context, resource *unstructured.Unstructured) (*Status, bool)
Eval executes the compiled check against a given resource.
type Checks ¶
type Checks []*Check
func (Checks) Eval ¶
func (r Checks) Eval(ctx context.Context, resource *unstructured.Unstructured) (*Status, bool)
Eval evaluates and prioritizes the set of readiness checks.
- Nil is returned when less than all of the checks are ready - If some precise and some inprecise times are given, the precise times are favored - Within precise or non-precise times, the max of that group is always used
func (Checks) EvalOptionally ¶
func (r Checks) EvalOptionally(ctx context.Context, resource *unstructured.Unstructured) (*Status, bool)
EvalOptionally is identical to Eval, except it returns the current time in the status if no checks are set.
Click to show internal directories.
Click to hide internal directories.