controller

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2017 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lifecycle

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

Lifecycle is controller which monitors containers and if container stops, restart it based on restart policy

func NewLifecycle

func NewLifecycle(client runtime.Client) *Lifecycle

NewLifecycle creates new Lifecycle controller instance

func (*Lifecycle) Run

func (l *Lifecycle) Run() error

Run starts the controller to monitor containers Run until faces such fatal error that cannot recover and will return the error

Jump to

Keyboard shortcuts

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