kubecli

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() (*kubernetes.Clientset, error)

func GetFromFlags

func GetFromFlags(master string, kubeconfig string) (*kubernetes.Clientset, error)

func GetRESTClient

func GetRESTClient() (*rest.RESTClient, error)

func GetRESTClientFromFlags

func GetRESTClientFromFlags(master string, kubeconfig string) (*rest.RESTClient, error)

func HandlePanic

func HandlePanic()

func NewListWatchFromClient

func NewListWatchFromClient(c cache.Getter, resource string, namespace string, fieldSelector fields.Selector, labelSelector labels.Selector) *cache.ListWatch

NewListWatchFromClient creates a new ListWatch from the specified client, resource, namespace and field selector.

Types

type Controller

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

func (*Controller) Run

func (c *Controller) Run(threadiness int, stopCh chan struct{})

func (*Controller) ShutDownQueue

func (c *Controller) ShutDownQueue()

Shut down the embedded queue. After the shutdown was issued, all items already in the queue will be processed but no new items will be accepted. It is possible to wait via #WaitUntilDone() until the last item was processed.

func (*Controller) StartInformer

func (c *Controller) StartInformer(stopCh chan struct{})

func (*Controller) WaitForSync

func (c *Controller) WaitForSync(stopCh chan struct{})

func (*Controller) WaitUntilDone

func (c *Controller) WaitUntilDone()

type ControllerFunc

type ControllerFunc func(cache.Store, workqueue.RateLimitingInterface, interface{})

Jump to

Keyboard shortcuts

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