docker

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client added in v1.11.0

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, buildargs []dockerlib.BuildArg) 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