controller

package
v0.0.0-...-b95e799 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetObjectMetaData

func GetObjectMetaData(obj interface{}) meta_v1.ObjectMeta

GetObjectMetaData returns metadata of a given k8s object

Types

type Controller

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

Controller - the primary struct responsible for all cluster actions

func NewController

func NewController(globalShutdownChan chan struct{}) *Controller

func (*Controller) HasSynced

func (controller *Controller) HasSynced() bool

HasSynced is required for the cache.Controller interface.

func (*Controller) LastSyncResourceVersion

func (controller *Controller) LastSyncResourceVersion() string

LastSyncResourceVersion is required for the cache.Controller interface.

func (*Controller) Run

func (controller *Controller) Run()

Run starts the controller

Jump to

Keyboard shortcuts

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