docker

package
v0.0.0-...-9c81b8b Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// WorkDir defines work dir
	WorkDir(dir string) Interface

	// Build builds a image
	Build(dockerfile, repository string) error

	// Push pushes built image to remote
	Push(repository string) error
}

Interface defines docker interface to build and push image TODO(liubog2008): add credential interface

func New

func New(path string) (Interface, error)

New returns a image interface

Jump to

Keyboard shortcuts

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