validation

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireOCIImageRef

func RequireOCIImageRef(ref *meta.OCIImageRef, fldPath *field.Path) (allErrs field.ErrorList)

RequireOCIImageRef validates that the OCIImageRef is set

func ValidateAbsolutePath

func ValidateAbsolutePath(pathStr string, fldPath *field.Path) (allErrs field.ErrorList)

ValidateAbsolutePath validates if a path is absolute

func ValidateBlockDeviceVolume

func ValidateBlockDeviceVolume(b *api.BlockDeviceVolume, fldPath *field.Path, paths map[string]struct{}) (allErrs field.ErrorList)

ValidateBlockDeviceVolume validates if the BlockDeviceVolume is valid

func ValidateFileMappings

func ValidateFileMappings(mappings *[]api.FileMapping, fldPath *field.Path) (allErrs field.ErrorList)

ValidateFileMappings validates if the filemappings is valid

func ValidateNonemptyName

func ValidateNonemptyName(name string, fldPath *field.Path) (allErrs field.ErrorList)

ValidateNonemptyName validated that the given name is nonempty

func ValidateVM

func ValidateVM(obj *api.VM) (allErrs field.ErrorList)

ValidateVM validates a VM object and collects all encountered errors

func ValidateVMName added in v0.8.0

func ValidateVMName(name string, fldPath *field.Path) (allErrs field.ErrorList)

ValidateVMName validates the VM name.

func ValidateVMStorage

func ValidateVMStorage(s *api.VMStorageSpec, fldPath *field.Path) (allErrs field.ErrorList)

ValidateVMStorage validates if the VMStorageSpec is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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