docker

package
v0.0.1-aliyun Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2019 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

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

Client 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 pushes 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