controller

package
v0.0.0-...-fa73266 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(conf *config.Config, kubeClient *nimbessclientset.Clientset, etcdClient etcdv3.Client, ctx context.Context)

Runs stargazer and then waits for process termination signals

Types

type Controller

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

Controller object

func Start

func Start(conf *config.Config, kubeClient *nimbessclientset.Clientset, eventHandler handlers.Handler,
	stopCh <-chan struct{}) *Controller

Start prepares a watcher and run corresponding controllers. Non-blocking. Returns new controller object.

func (*Controller) HasSynced

func (c *Controller) HasSynced() bool

HasSynced is required for the cache.Controller interface.

func (*Controller) LastSyncResourceVersion

func (c *Controller) LastSyncResourceVersion() string

LastSyncResourceVersion is required for the cache.Controller interface.

func (*Controller) Run

func (c *Controller) Run(stopCh <-chan struct{}) error

Run starts the stargazer controller

type Event

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

Event indicate the informerEvent

Directories

Path Synopsis
unp

Jump to

Keyboard shortcuts

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