Documentation ¶
Index ¶
- func ValidateRegistryConfig(config *registry.RegistryConfig, fldPath *field.Path) field.ErrorList
- func ValidateRegistryConfigUpdate(oldConfig, newConfig *registry.RegistryConfig, fldPath *field.Path) field.ErrorList
- func ValidateURL(fldPath *field.Path, url string) field.ErrorList
- func ValidateUpstream(fldPath *field.Path, upstream string) field.ErrorList
- func ValidateUpstreamRegistrySecret(secret *corev1.Secret, fldPath *field.Path, secretReference string) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateRegistryConfig ¶
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
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
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.
Click to show internal directories.
Click to hide internal directories.