docker

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2018 License: Apache-2.0 Imports: 30 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

This section is empty.

Types

type Builder

type Builder struct {
	RegistryURL string
	ImageName   string
	ImageTag    string
	// contains filtered or unexported fields
}

Builder holds the necessary information to build and push docker images

func NewBuilder

func NewBuilder(registryURL, imageName, imageTag string, preferMinikube bool) (*Builder, error)

NewBuilder creates a new docker Builder instance

func (*Builder) Authenticate

func (b *Builder) Authenticate(user, password string, checkCredentialsStore bool) (*types.AuthConfig, error)

Authenticate authenticates the client with a remote registry

func (*Builder) BuildImage

func (b *Builder) BuildImage(contextPath, dockerfilePath string, options *types.ImageBuildOptions) error

BuildImage builds a dockerimage with the docker cli contextPath is the absolute path to the context path dockerfilePath is the absolute path to the dockerfile WITHIN the contextPath

func (*Builder) PushImage

func (b *Builder) PushImage() error

PushImage pushes an image to the specified registry

Jump to

Keyboard shortcuts

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