validate

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var I *validator.Validate

Functions

func AlphaNumUnderscoreValidator

func AlphaNumUnderscoreValidator(value string) bool

func ContainerURLValidator

func ContainerURLValidator(url string) bool

func EnvVarNameValidator

func EnvVarNameValidator(env string) bool

func Format

func Format(err validator.FieldError) string

func OverrideImageFetcher added in v0.18.1

func OverrideImageFetcher(fetcher ImageFetcher)

Types

type ImageFetcher added in v0.18.1

type ImageFetcher interface {
	FetchContainerImage(
		username string,
		password string,
		registry string,
		img string,
	) (image ocispec.Image, err error)
}
var DefaultImageFetcher ImageFetcher = &imageFetcher{}

Jump to

Keyboard shortcuts

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