Documentation ¶
Index ¶
- func ControlPlaneHost(cp string) string
- func ControlPlaneHostAndPort(cp string) string
- func CreateOrUpdateCertToSecret(client clientset.Interface, caCert *x509.Certificate, cert *x509.Certificate, ...) error
- func NewServerCertAndKey(caCert *x509.Certificate, caKey crypto.Signer, commonName string, ...) (*x509.Certificate, crypto.Signer, error)
- func UniqueStringSlice(slice []string) []string
- func VersionCompare(versionS, constraintS string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControlPlaneHost ¶ added in v1.3.10
ControlPlaneHost parses a control plane address of the form "host:port", "ipv4:port", "[ipv6]:port" into host; ":port" can be eventually omitted. If the string is not a valid representation of network address, empty control plane returns.
func ControlPlaneHostAndPort ¶ added in v1.3.10
ControlPlaneHostAndPort parses a control plane address of the form "host:port", "ipv4:port", "[ipv6]:port" into host and port; ":port" can be eventually omitted. If the port is empty, a default control plane port 6443 added. If the string is not a valid representation of network address, empty control plane returns.
func CreateOrUpdateCertToSecret ¶
func CreateOrUpdateCertToSecret( client clientset.Interface, caCert *x509.Certificate, cert *x509.Certificate, key crypto.Signer, secretName string, ) error
CreateOrUpdateCertToSecret creates or update certificate to secret resource
func NewServerCertAndKey ¶
func NewServerCertAndKey( caCert *x509.Certificate, caKey crypto.Signer, commonName string, certSANs []string, ) (*x509.Certificate, crypto.Signer, error)
NewServerCertAndKey creates new certificate and key by passing the certificate authority certificate and key and server common name and server SANs
func UniqueStringSlice ¶ added in v1.2.0
UniqueStringSlice accepts a slice and will return an array without any repeated elements. The ordering will be preserved as seen on the first slice.
func VersionCompare ¶ added in v1.4.12
Types ¶
This section is empty.