controller

package
v0.0.0-...-9ea1053 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResyncPeriod = 1 * time.Minute
)

Variables

This section is empty.

Functions

func GetControllers

func GetControllers() map[string]Controller

func RegisterController

func RegisterController(name string, controller Controller) error

Types

type Config

type Config struct {
	ClientSet           *client.V1
	ClusterInformer     cache.SharedIndexInformer
	ClusterNodeInformer cache.SharedIndexInformer
}

func NewControllerConfig

func NewControllerConfig(config string) (*Config, error)

func (*Config) Run

func (c *Config) Run(stopc <-chan struct{}) error

type Controller

type Controller interface {
	GetName() string
	Run(stopc <-chan struct{}) error
	Init(config *Config)
	Shutdown()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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