cert-manager: github.com/jetstack/cert-manager/pkg/util/kube Index | Files

package kube

import "github.com/jetstack/cert-manager/pkg/util/kube"

Index

Package Files

pki.go

func ParseTLSKeyFromSecret Uses

func ParseTLSKeyFromSecret(secret *corev1.Secret, keyName string) (crypto.Signer, []byte, error)

ParseTLSKeyFromSecret will parse and decode a private key from the given Secret at the given key index.

func SecretTLSCert Uses

func SecretTLSCert(ctx context.Context, secretLister corelisters.SecretLister, namespace, name string) (*x509.Certificate, error)

func SecretTLSCertChain Uses

func SecretTLSCertChain(ctx context.Context, secretLister corelisters.SecretLister, namespace, name string) ([]*x509.Certificate, error)

func SecretTLSKey Uses

func SecretTLSKey(ctx context.Context, 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 Uses

func SecretTLSKeyPair(ctx context.Context, secretLister corelisters.SecretLister, namespace, name string) ([]*x509.Certificate, crypto.Signer, error)

func SecretTLSKeyRef Uses

func SecretTLSKeyRef(ctx context.Context, 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'.

Package kube imports 7 packages (graph) and is imported by 33 packages. Updated 2020-04-29. Refresh now. Tools for package owners.