docker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package docker provides an interface to the system's Docker daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner represents a command that can be run.

func New

func New() Runner

New returns a Runner.

func (Runner) Build

func (r Runner) Build(uri, path, imageTag string, additionalTags ...string) error

Build will run a `docker build` command with the input uri, Dockerfile path, and tags.

func (Runner) Login

func (r Runner) Login(uri, username, password string) error

Login will run a `docker login` command against the Service repository URI with the input uri and auth data.

func (Runner) Push

func (r Runner) Push(uri, imageTag string, additionalTags ...string) error

Push will run `docker push` command against the repository URI with the input uri and image tags.

Directories

Path Synopsis
Package dockerfile provides simple Dockerfile parsing functionality.
Package dockerfile provides simple Dockerfile parsing functionality.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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