validation

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRegistryConfig

func ValidateRegistryConfig(config *registry.RegistryConfig, fldPath *field.Path) field.ErrorList

ValidateRegistryConfig validates the passed configuration instance.

func ValidateRegistryConfigUpdate added in v0.2.0

func ValidateRegistryConfigUpdate(oldConfig, newConfig *registry.RegistryConfig, fldPath *field.Path) field.ErrorList

ValidateRegistryConfigUpdate validates the passed configuration update.

func ValidateURL added in v0.9.0

func ValidateURL(fldPath *field.Path, url string) field.ErrorList

ValidateURL validates that URL format is `<scheme><host>[:<port>]` where `<scheme>` is 'https://' or 'http://', `<host>` is valid DNS subdomain (RFC 1123) and optional `<port>` is in range [1,65535].

func ValidateUpstream added in v0.9.0

func ValidateUpstream(fldPath *field.Path, upstream string) field.ErrorList

ValidateUpstream validates that upstream is valid DNS subdomain (RFC 1123) and optionally a port.

func ValidateUpstreamRegistrySecret added in v0.3.0

func ValidateUpstreamRegistrySecret(secret *corev1.Secret, fldPath *field.Path, secretReference string) field.ErrorList

ValidateUpstreamRegistrySecret checks whether the given Secret is immutable and contains `data.username` and `data.password` fields.

Types

This section is empty.

Jump to

Keyboard shortcuts

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