Documentation ¶
Index ¶
- Constants
- Variables
- func ValidateEmpty(parameterName, value string) error
- func ValidateExistsInRepository(name string, repository connection.Repository) error
- func ValidateID(id string) error
- func ValidateK8sLabel(label string) error
- func ValidateResources(resources *odahuv1alpha1.ResourceRequirements, gpuResName string) (err error)
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 ValidateExistsInRepository ¶
func ValidateExistsInRepository(name string, repository connection.Repository) error
func ValidateID ¶
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 ValidateResources ¶
func ValidateResources(resources *odahuv1alpha1.ResourceRequirements, gpuResName string) (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.