checker

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectInfo

func CollectInfo(podtransitionrule string, detail *appsv1alpha1.PodTransitionDetail) string

Types

type CheckState

type CheckState struct {
	Stage   string
	States  []State
	Message string
}

func (*CheckState) InStage

func (cs *CheckState) InStage() bool

func (*CheckState) InStageAndPassed

func (cs *CheckState) InStageAndPassed() bool

type Checker

type Checker interface {
	// GetState collects current states from all associated PodTransitionRules, and every state stage is not guaranteed to be consistent
	GetState(context.Context, client.Client, client.Object) (CheckState, error)
}

func NewCheck

func NewCheck() Checker

type State

type State struct {
	PodTransitionRuleName string
	Message               string
	Detail                *appsv1alpha1.PodTransitionDetail
}

Jump to

Keyboard shortcuts

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