handler

package
v0.0.0-...-ba28bb9 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Upkick

type Upkick struct {
	Client   *docker.Client
	Config   *config.Config
	Hostname string
	Metrics  *metrics.PrometheusMetrics
}

Upkick is an upkick handler

func NewUpkick

func NewUpkick(version string) (*Upkick, error)

NewUpkick returns a new Upkick handler

func (*Upkick) GetImages

func (u *Upkick) GetImages() (images map[string]*image.Image, err error)

GetImages returns a slice of Image

func (*Upkick) Kick

func (u *Upkick) Kick(i *image.Image) (err error)

Kick stops and removes all containers using an obsolete version of the Image

func (*Upkick) Pull

func (u *Upkick) Pull(i *image.Image) (err error)

Pull pulls the newest version of an image

func (*Upkick) PushMetrics

func (u *Upkick) PushMetrics()

PushMetrics pushes metrics for the handler

Jump to

Keyboard shortcuts

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