validation

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidLeaseCandidateName added in v1.31.0

func ValidLeaseCandidateName(name string, prefix bool) []string

func ValidateCoordinatedLeaseStrategy added in v1.31.0

func ValidateCoordinatedLeaseStrategy(strategy coordination.CoordinatedLeaseStrategy, fldPath *field.Path) field.ErrorList

ValidateCoordinatedLeaseStrategy validates the Strategy field in both the Lease and LeaseCandidate

func ValidateLease

func ValidateLease(lease *coordination.Lease) field.ErrorList

ValidateLease validates a Lease.

func ValidateLeaseCandidate added in v1.31.0

func ValidateLeaseCandidate(lease *coordination.LeaseCandidate) field.ErrorList

ValidateLeaseCandidate validates a LeaseCandidate.

func ValidateLeaseCandidateSpec added in v1.31.0

func ValidateLeaseCandidateSpec(spec *coordination.LeaseCandidateSpec, fldPath *field.Path) field.ErrorList

ValidateLeaseCandidateSpec validates spec of LeaseCandidate.

func ValidateLeaseCandidateSpecUpdate added in v1.31.0

func ValidateLeaseCandidateSpecUpdate(leaseCandidateSpec, oldLeaseCandidateSpec *coordination.LeaseCandidateSpec) field.ErrorList

func ValidateLeaseCandidateUpdate added in v1.31.0

func ValidateLeaseCandidateUpdate(leaseCandidate, oldLeaseCandidate *coordination.LeaseCandidate) field.ErrorList

ValidateLeaseCandidateUpdate validates an update of LeaseCandidate object.

func ValidateLeaseSpec

func ValidateLeaseSpec(spec *coordination.LeaseSpec, fldPath *field.Path) field.ErrorList

ValidateLeaseSpec validates spec of Lease.

func ValidateLeaseUpdate

func ValidateLeaseUpdate(lease, oldLease *coordination.Lease) field.ErrorList

ValidateLeaseUpdate validates an update of Lease object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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