docker

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: GPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericImageFromSource added in v0.1.13

func GenericImageFromSource(src types.ImageSource) types.Image

GenericImageFromSource returns a types.Image implementation for source. NOTE: This is currently an internal testing helper, do not rely on this as a stable API. There might be an ImageFromSource eventually, but it would not be in the skopeo/docker package.

func NewDockerImage added in v0.1.12

func NewDockerImage(img, certPath string, tlsVerify bool) (types.Image, error)

NewDockerImage returns a new Image interface type after setting up a client to the registry hosting the given image.

func NewDockerImageDestination added in v0.1.12

func NewDockerImageDestination(img, certPath string, tlsVerify bool) (types.ImageDestination, error)

NewDockerImageDestination creates a new ImageDestination for the specified image and connection specification.

func NewDockerImageSource added in v0.1.12

func NewDockerImageSource(img, certPath string, tlsVerify bool) (types.ImageSource, error)

NewDockerImageSource creates a new ImageSource for the specified image and connection specification.

Types

type Image added in v0.1.13

type Image struct {
	// 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) DockerTar added in v0.1.13

func (i *Image) DockerTar() ([]byte, error)

TODO(runcom)

func (*Image) GetRepositoryTags added in v0.1.13

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) Inspect added in v0.1.13

func (i *Image) Inspect() (*types.ImageInspectInfo, error)

func (*Image) IntendedDockerReference added in v0.1.13

func (i *Image) IntendedDockerReference() string

IntendedDockerReference returns the full, unambiguous, Docker reference for this image, _as specified by the user_ (not as the image itself, or its underlying storage, claims). This can be used e.g. to determine which public keys are trusted for this image. May be "" if unknown.

func (*Image) Layers added in v0.1.13

func (i *Image) Layers(layers ...string) error

func (*Image) Manifest added in v0.1.13

func (i *Image) Manifest() ([]byte, error)

Manifest is like ImageSource.GetManifest, but the result is cached; it is OK to call this however often you need.

func (*Image) Signatures added in v0.1.13

func (i *Image) Signatures() ([][]byte, error)

Signatures is like ImageSource.GetSignatures, but the result is cached; it is OK to call this however often you need.

func (*Image) SourceRefFullName added in v0.1.13

func (i *Image) SourceRefFullName() (string, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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