docker

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultDocker

type DefaultDocker struct {
}

DefaultDocker contains the default setup for docker commands.

func (*DefaultDocker) BuildImage

func (b *DefaultDocker) BuildImage(name string, context string, tags []string, target string, cacheFrom string, file string, output bool) error

BuildImage builds a docker image from given config.

func (*DefaultDocker) PushImage

func (b *DefaultDocker) PushImage(name string, image string, output bool) error

PushImage pushes a given docker tag.

type Docker

type Docker interface {
	BuildImage(name string, context string, tags []string, target string, cacheFrom string, file string, output bool) error
	PushImage(name string, image string, output bool) error
}

Docker interface to run docker related commands.

Jump to

Keyboard shortcuts

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