validation

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpecSectionValidationFailedMessage = "\"Spec.%q\" validation errors: %s"
	EmptyValueStringError              = "empty %q"
)

Variables

View Source
var ErrIDValidation = errors.New("ID is not valid")
View Source
var LabelValueValidationErrorTemplate = "%s must be valid Kubernetes label, i.e. match this pattern: %s"

Functions

func ValidateEmpty

func ValidateEmpty(parameterName, value string) error

func ValidateExistsInRepository

func ValidateExistsInRepository(name string, repository connection.Repository) error

func ValidateID

func ValidateID(id string) error

Id restrictions:

  • contain at most 63 characters
  • contain only lowercase alphanumeric characters or ‘-’
  • start with an alpha character
  • end with an alphanumeric character

func ValidateK8sLabel

func ValidateK8sLabel(label string) error

func ValidateResources

func ValidateResources(resources *odahuv1alpha1.ResourceRequirements, gpuResName string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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