docker

package
v0.0.0-...-361643f Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2017 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrV1NotSupported = errors.New("can't talk to a V1 docker registry")

ErrV1NotSupported is returned when we're trying to talk to a docker V1 registry.

View Source
var Transport = dockerTransport{}

Transport is an ImageTransport for Docker registry-hosted images.

Functions

func NewReference

func NewReference(ref reference.Named) (types.ImageReference, error)

NewReference returns a Docker reference for a named reference. The reference must satisfy !reference.IsNameOnly().

func ParseReference

func ParseReference(refString string) (types.ImageReference, error)

ParseReference converts a string, which should not start with the ImageTransport.Name prefix, into an Docker ImageReference.

Types

type Image

type Image struct {
	types.Image
	// contains filtered or unexported fields
}

Image is a Docker-specific implementation of types.Image with a few extra methods which are specific to Docker.

func (*Image) GetRepositoryTags

func (i *Image) GetRepositoryTags() ([]string, error)

GetRepositoryTags list all tags available in the repository. Note that this has no connection with the tag(s) used for this specific image, if any.

func (*Image) SourceRefFullName

func (i *Image) SourceRefFullName() string

SourceRefFullName returns a fully expanded name for the repository this image is in.

Directories

Path Synopsis
Package reference is a fork of the upstream docker/docker/reference package.
Package reference is a fork of the upstream docker/docker/reference package.

Jump to

Keyboard shortcuts

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