docker

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker interface {
	PullIfNotPresent(image string, retries int) error
	Pull(image string, retries int) error
	Push(image string, retries int) error
	Tag(src, dest string, retries int) error
	Rmi(image string, retries int) error
	Save(images []string, filename string) error
}

type LocalDocker

type LocalDocker struct {
}

func (LocalDocker) Pull

func (l LocalDocker) Pull(image string, retries int) error

Pull pulls an image, retrying up to retries times

func (LocalDocker) PullIfNotPresent

func (l LocalDocker) PullIfNotPresent(image string, retries int) error

PullIfNotPresent will pull an image if it is not present locally retrying up to retries times returns errors from pulling

func (LocalDocker) Push

func (l LocalDocker) Push(image string, retries int) error

Push pushes an image, retrying up to retries times

func (LocalDocker) Rmi

func (l LocalDocker) Rmi(image string, retries int) error

Rmi removes an image, retrying up to retries times

func (LocalDocker) Save

func (l LocalDocker) Save(images []string, filename string) error

Save exports a set of images to a tar file

func (LocalDocker) Tag

func (l LocalDocker) Tag(src, dest string, retries int) error

Tag tags an image, retrying up to retries times

Jump to

Keyboard shortcuts

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