docker

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FsLayer

type FsLayer struct {
	BlobSum string
}

FsLayer represents a layer in docker image

type Image

type Image struct {
	Registry string
	Name     string
	Tag      string
	FsLayers []FsLayer
	Token    string
	// contains filtered or unexported fields
}

Image represents Docker image

func NewImage

func NewImage(qname, user, password string, insecureTLS, insecureRegistry bool) (*Image, error)

NewImage parses image name which could be the ful name registry:port/name:tag or in any other shorter forms and creates docker image entity without information about layers

func (*Image) Pull

func (i *Image) Pull() error

Pull retrieves information about layers from docker registry. It gets docker registry token if needed.

Jump to

Keyboard shortcuts

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