controller

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2018 License: Apache-2.0 Imports: 5 Imported by: 1

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) Serve added in v0.2.0

func (l *Lifecycle) Serve()

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

func (*Lifecycle) Stop added in v0.2.0

func (l *Lifecycle) Stop()

Stop the lifecycle running

Jump to

Keyboard shortcuts

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