docker

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: Apache-2.0 Imports: 10 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DockerClient

func DockerClient() (*docker.Client, error)

DockerClient connects to Docker client on host

Types

type Build

type Build struct {
	Client dockerlib.Client
}

Build will provide methods for interaction with API regarding building images

func (*Build) BuildImage

func (c *Build) BuildImage(source string, image string, dockerfile string) error

BuildImage builds a Docker image via the Docker API. Takes the source directory and image name and then builds the appropriate image. Tarball is utilized in order to make building easier.

type Push

type Push struct {
	Client dockerlib.Client
}

Push will provide methods for interaction with API regarding pushing images

func (*Push) PushImage

func (c *Push) PushImage(fullImageName string) error

PushImage push a Docker image via the Docker API. Takes the image name, parses the URL details and then push based on environment authentication credentials.

Jump to

Keyboard shortcuts

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