kubernetes

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultKubeConfigPath is /etc/kubernetes/controller-manager.conf
	DefaultKubeConfigPath = "/etc/kubernetes/controller-manager.conf"

	// EnvKubeConfig contains the path to the KubeConfig
	EnvKubeConfig = "VSPHERE_KUBE_CONFIG"
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(name string) (clientset.Interface, error)

NewClient creates a newk8s client based on a service account

func NewClientOrDie

func NewClientOrDie(name string) clientset.Interface

NewClientOrDie creates a newk8s client based on a service account

Types

type InformerManager

type InformerManager struct {
	// contains filtered or unexported fields
}

InformerManager is a service that notifies subscribers about changes to well-defined information in the Kubernetes API server.

func NewInformer

func NewInformer(client clientset.Interface) *InformerManager

NewInformer creates a newk8s client based on a service account

func (*InformerManager) AddNodeListener

func (im *InformerManager) AddNodeListener(add, remove func(obj interface{}), update func(oldObj, newObj interface{}))

AddNodeListener hooks up add, update, delete callbacks

func (*InformerManager) GetSecretListener

func (im *InformerManager) GetSecretListener() listerv1.SecretLister

GetSecretListener creates a lister to use

func (*InformerManager) Listen

func (im *InformerManager) Listen()

Listen starts the Informers

Jump to

Keyboard shortcuts

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