controller

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2017 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVersionOutdated = errors.New("requested version is outdated in apiserver")

	// Workaround for watching TPR resource.
	// client-go has encoding issue and we want something more predictable.
	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
}

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) Run

func (c *Controller) Run() error

type Event

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

Jump to

Keyboard shortcuts

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