validator

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPValidator added in v0.13.0

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

IPValidator defines the struct for control plane IP validations.

func NewIPValidator added in v0.13.0

func NewIPValidator(opts ...IPValidatorOpt) *IPValidator

NewIPValidator initializes a new IPValidator object.

func (*IPValidator) ValidateControlPlaneIPUniqueness added in v0.13.0

func (v *IPValidator) ValidateControlPlaneIPUniqueness(cluster *v1alpha1.Cluster) error

ValidateControlPlaneIPUniqueness checks whether or not the control plane endpoint defined in the cluster spec is available.

type IPValidatorOpt added in v0.13.0

type IPValidatorOpt func(e *IPValidator)

IPValidatorOpt is the type for optional IPValidator configurations.

func CustomNetClient added in v0.13.0

func CustomNetClient(netClient networkutils.NetClient) IPValidatorOpt

CustomNetClient passes in a custom net client to the IPValidator.

Jump to

Keyboard shortcuts

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