Help us shape the future of Go! Take the 2026 Go Developer Survey

kube

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSharedInformerFactory = NewSharedInformerFactory()

Functions

func EnsureIngress

func EnsureIngress(cl kubernetes.Interface, ingress *extensions.Ingress) (*extensions.Ingress, error)

func EnsureJob

func EnsureJob(cl kubernetes.Interface, job *batch.Job) (*batch.Job, error)

func EnsureSecret

func EnsureSecret(cl kubernetes.Interface, secret *api.Secret) (*api.Secret, error)

func EnsureService

func EnsureService(cl kubernetes.Interface, service *core.Service) (*core.Service, error)

func GetKeyPair

func GetKeyPair(secretLister corelisters.SecretLister, namespace, name string) (certBytes []byte, keyBytes []byte, err error)

func SecretTLSCert

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

func SecretTLSKey

func SecretTLSKey(secretLister corelisters.SecretLister, namespace, name string) (*rsa.PrivateKey, error)

func SecretTLSKeyRef

func SecretTLSKeyRef(secretLister corelisters.SecretLister, namespace, name, keyName string) (*rsa.PrivateKey, error)

SecretTLSKeyRef will decode a PKCS1 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

type SharedInformerFactory

type SharedInformerFactory interface {
	InformerFor(string, metav1.GroupVersionKind, cache.SharedIndexInformer) cache.SharedIndexInformer
	Start(<-chan struct{})
}

func NewSharedInformerFactory

func NewSharedInformerFactory() SharedInformerFactory

Jump to

Keyboard shortcuts

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