image

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultTag defines the default tag used when performing images related actions and no tag or digest is specified
	DefaultTag = "latest"
	// DefaultHostname is the default built-in hostname
	DefaultHostname = "docker.io"
	// LegacyDefaultHostname is automatically converted to DefaultHostname
	LegacyDefaultHostname = "index.docker.io"
	// DefaultRepoPrefix is the prefix used for default repositories in default host
	DefaultRepoPrefix = "library/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	ContextPath string
	Config      docker.BuildImageOptions
}

Build holds the configuration required to build a Docker context

func (Build) Equal

func (b Build) Equal(other *Build) bool

Equal returns whether the build is the same as the other

type Image

type Image struct {
	Build *Build
	// contains filtered or unexported fields
}

Image contains configuration necessary to deploy an image or if necessary, built it.

func FromString

func FromString(str string) (*Image, error)

FromString creates an Image using a string representation

func (*Image) Equal

func (i *Image) Equal(other *Image) bool

Equal returns if one image is the same as another

func (Image) KubeImage

func (i Image) KubeImage() (out string)

KubeImage returns a reference to the Image for use with the Image field of kube.Container.

func (Image) Name

func (i Image) Name() string

Name returns a human readable identifier for the Image. Should be a DNS Label.

func (Image) PushOptions

func (i Image) PushOptions(out io.Writer, json bool) docker.PushImageOptions

PushOptions returns the parameters needed to push an image.

Jump to

Keyboard shortcuts

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