validation

package
v2.34.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImagePullSecret

func ImagePullSecret(secret string) error

ImagePullSecret checks if the given string is a valid image pull secret and returns an error if not.

func ValidateBundle

func ValidateBundle(bundlePath string, preset crcpreset.Preset) error

func ValidateBundlePath

func ValidateBundlePath(bundlePath string, preset crcpreset.Preset) error

ValidateBundlePath checks if the provided bundle path exist

func ValidateCPUs

func ValidateCPUs(value int, preset crcpreset.Preset) error

ValidateCPUs checks if provided cpus count is valid

func ValidateDiskSize

func ValidateDiskSize(value int) error

func ValidateEnoughMemory

func ValidateEnoughMemory(value int) error

ValidateEnoughMemory checks if enough memory is installed on the host

func ValidateIPAddress

func ValidateIPAddress(ipAddress string) error

ValidateIPAddress checks if provided IP is valid

func ValidateMemory

func ValidateMemory(value int, preset crcpreset.Preset) error

ValidateMemory checks if provided Memory count is valid

func ValidatePath

func ValidatePath(path string) error

ValidatePath check if provide path is exist

func ValidatePersistentVolumeSize added in v2.28.0

func ValidatePersistentVolumeSize(value int) error

func ValidateURL

func ValidateURL(uri string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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