Documentation ¶
Index ¶
- func DomainName(v string, acceptTrailingDot bool) error
- func Host(host string) error
- func IPAddressOrCIDR(ip string) error
- func MergeCertificateData(addlData, systemData []byte) ([]*x509.Certificate, error)
- func Port(port int) error
- func Subdomain(v string) error
- func TrustBundleConfigMap(cfgMap *corev1.ConfigMap, caDataKey string) ([]*x509.Certificate, []byte, error)
- func URI(uri string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DomainName ¶
DomainName checks if the given string is a valid domain name.
func IPAddressOrCIDR ¶
IPAddressOrCIDR validates ip as being a valid IP or CIDR (IPv4/IPv6)
func MergeCertificateData ¶
func MergeCertificateData(addlData, systemData []byte) ([]*x509.Certificate, error)
MergeCertificateData merges certificates, if any, from adlData and systemData, returning the merged certificates as a slice of *x509.Certificate.
func TrustBundleConfigMap ¶
func TrustBundleConfigMap(cfgMap *corev1.ConfigMap, caDataKey string) ([]*x509.Certificate, []byte, error)
TrustBundleConfigMap validates that ConfigMap contains a trust bundle named <caDataKey> and it contains one or more valid PEM encoded certificates, returning a byte slice of <caDataKey> contents upon success.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.