validation

package
v1.99.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

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 added in v1.23.0

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 added in v1.20.0

func ValidateDiskSize(value int) error

func ValidateEnoughMemory added in v1.14.0

func ValidateEnoughMemory(value int) error

ValidateEnoughMemory checks if enough memory is installed on the host

func ValidateIPAddress added in v1.14.0

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

Types

type InvalidPath added in v1.99.2

type InvalidPath struct {
	// contains filtered or unexported fields
}

func (*InvalidPath) Error added in v1.99.2

func (e *InvalidPath) Error() string

Jump to

Keyboard shortcuts

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