probing

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prober

type Prober interface {
	Probe(obj *unstructured.Unstructured) (success bool, message string)
}

func NewConditionProbe

func NewConditionProbe(typeName, status string) Prober

func Parse

func Parse(ctx context.Context, packageProbes []corev1alpha1.ObjectSetProbe) (Prober, error)

Parse takes a list of ObjectSetProbes (commonly defined within a ObjectSetPhaseSpec) and compiles a single Prober to test objects with.

func ParseProbes

func ParseProbes(_ context.Context, probeSpecs []corev1alpha1.Probe) Prober

ParseProbes takes a []corev1alpha1.Probe and compiles it into a Prober.

func ParseSelector

func ParseSelector(_ context.Context, selector corev1alpha1.ProbeSelector, probe Prober) (Prober, error)

ParseSelector reads a corev1alpha1.ProbeSelector and wraps a Prober, only executing the Prober when the selector criteria match.

Jump to

Keyboard shortcuts

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