validations

package
v0.0.0-...-1fb7f3c Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllStrings

func AllStrings(vs []string, f func(string) bool) bool

func IsValidTag

func IsValidTag(tag string) bool

func ValidateAdditionalNTPSource

func ValidateAdditionalNTPSource(commaSeparatedNTPSources string) bool

func ValidateCaCertificate

func ValidateCaCertificate(certificate string) error

ValidateCaCertificate ensures the specified base64 CA certificate is valid by trying to decode and parse it.

func ValidateDomainNameFormat

func ValidateDomainNameFormat(dnsDomainName string) (int32, error)

func ValidateHTTPFormat

func ValidateHTTPFormat(theurl string) error

ValidateHTTPFormat validates the HTTP and HTTPS format

func ValidateHTTPProxyFormat

func ValidateHTTPProxyFormat(proxyURL string) error

ValidateHTTPProxyFormat validates the HTTP Proxy and HTTPS Proxy format

func ValidateHostname

func ValidateHostname(name string) error

func ValidateInstallerArgs

func ValidateInstallerArgs(args []string) error

func ValidateNTPSource

func ValidateNTPSource(ntpSource string) bool

func ValidateNoProxyFormat

func ValidateNoProxyFormat(noProxy string) error

ValidateNoProxyFormat validates the no-proxy format which should be a comma-separated list of destination domain names, domains, IP addresses or other network CIDRs. A domain can be prefaced with '.' to include all subdomains of that domain.

func ValidateTags

func ValidateTags(tags 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