docker

package
v0.57.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 7 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 {
	Inspect(image string, retries int) error
	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
	Run(image string, entryPoint string, env map[string]string, args ...string) ([]string, error)
}

type LocalDocker

type LocalDocker struct {
}

func (LocalDocker) Inspect added in v0.56.17

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

Inspect

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) Run added in v0.20.0

func (l LocalDocker) Run(image string, entryPoint string, env map[string]string, args ...string) ([]string, error)

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