controller

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2017 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Workaround for watching CR resource.
	// TODO: remove this to use CR client.
	KubeHttpCli *http.Client
	MasterHost  string
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Namespace      string
	ServiceAccount string
	PVProvisioner  string
	s3config.S3Context
	KubeCli    kubernetes.Interface
	KubeExtCli apiextensionsclient.Interface
	EtcdCRCli  client.EtcdClusterCR
}

func (*Config) Validate added in v0.2.0

func (c *Config) Validate() error

type Controller

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

func New

func New(cfg Config) *Controller

func (*Controller) Start added in v0.5.2

func (c *Controller) Start() error

type Event

type Event struct {
	Type   kwatch.EventType
	Object *spec.EtcdCluster
}

Jump to

Keyboard shortcuts

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