Documentation ¶
Index ¶
- func KubeConfig(apiServerHost string) (*rest.Config, error)
- func SecretTLSCert(secretLister corelisters.SecretLister, namespace, name string) (*x509.Certificate, error)
- func SecretTLSCertChain(secretLister corelisters.SecretLister, namespace, name string) ([]*x509.Certificate, error)
- func SecretTLSKey(secretLister corelisters.SecretLister, namespace, name string) (crypto.Signer, error)
- func SecretTLSKeyPair(secretLister corelisters.SecretLister, namespace, name string) ([]*x509.Certificate, crypto.Signer, error)
- func SecretTLSKeyRef(secretLister corelisters.SecretLister, namespace, name, keyName string) (crypto.Signer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KubeConfig ¶
KubeConfig will return a rest.Config for communicating with the Kubernetes API server. If apiServerHost is specified, a config without authentication that is configured to talk to the apiServerHost URL will be returned. Else, the in-cluster config will be loaded, and failing this, the config will be loaded from the users local kubeconfig directory
func SecretTLSCert ¶
func SecretTLSCert(secretLister corelisters.SecretLister, namespace, name string) (*x509.Certificate, error)
func SecretTLSCertChain ¶ added in v0.6.0
func SecretTLSCertChain(secretLister corelisters.SecretLister, namespace, name string) ([]*x509.Certificate, error)
func SecretTLSKey ¶
func SecretTLSKey(secretLister corelisters.SecretLister, namespace, name string) (crypto.Signer, error)
SecretTLSKey will decode a PKCS1/SEC1 (in effect, a RSA or ECDSA) private key stored in a secret with 'name' in 'namespace'. It will read the private key data from the secret entry with name 'keyName'.
func SecretTLSKeyPair ¶ added in v0.6.0
func SecretTLSKeyPair(secretLister corelisters.SecretLister, namespace, name string) ([]*x509.Certificate, crypto.Signer, error)
func SecretTLSKeyRef ¶
func SecretTLSKeyRef(secretLister corelisters.SecretLister, namespace, name, keyName string) (crypto.Signer, error)
SecretTLSKeyRef will decode a PKCS1/SEC1 (in effect, a RSA or ECDSA) private key stored in a secret with 'name' in 'namespace'. It will read the private key data from the secret entry with name 'keyName'.
Types ¶
This section is empty.