validations

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDNSRecordsExistence

func CheckDNSRecordsExistence(names []string, dnsDomainID, dnsProviderType string) error

CheckDNSRecordsExistence checks whether that specified record-set names already exist in the DNS service

func ParsePullSecret

func ParsePullSecret(secret string) (map[string]PullSecretCreds, error)

func ValidateBaseDNS

func ValidateBaseDNS(dnsDomainName, dnsDomainID, dnsProviderType string) error

ValidateBaseDNS validates the specified base domain name

func ValidateClusterNameFormat

func ValidateClusterNameFormat(name string) error

ValidateClusterNameFormat validates specified cluster name format

func ValidateHTTPProxyFormat

func ValidateHTTPProxyFormat(proxyURL string) error

ValidateHTTPProxyFormat validates the HTTP Proxy and HTTPS Proxy format

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 ValidatePullSecret

func ValidatePullSecret(secret string) error

func ValidateSSHPublicKey

func ValidateSSHPublicKey(sshPublicKey string) (err error)

Types

type PullSecretCreds

type PullSecretCreds struct {
	Username string
	Password string
	Registry string
	AuthRaw  string
}

Jump to

Keyboard shortcuts

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