validation

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 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 AgentExists

type AgentExists func(string) (bool, error)

type AgentValidator

type AgentValidator interface {
	ValidateAgentName(agent string) (bool, error)
}

func NewAgentValidator

func NewAgentValidator() AgentValidator

func NewCustomAgentValidator

func NewCustomAgentValidator(agentExists AgentExists) AgentValidator

type OutOfServiceTaintValidator added in v0.4.0

type OutOfServiceTaintValidator struct {
	// contains filtered or unexported fields
}

func NewOutOfServiceTaintValidator added in v0.4.0

func NewOutOfServiceTaintValidator(config *rest.Config) (*OutOfServiceTaintValidator, error)

NewOutOfServiceTaintValidator returns a validator to check if out-of-service taint is supporetd on the cluster

func (*OutOfServiceTaintValidator) IsOutOfServiceTaintSupported added in v0.4.0

func (v *OutOfServiceTaintValidator) IsOutOfServiceTaintSupported() bool

IsOutOfServiceTaintSupported returns if the cluster supports out-of-service taint

Jump to

Keyboard shortcuts

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