dockerclient

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2016 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package dockerclient provides helper methods for creating a synthesized docker load TAR stream and loading it into the local Docker daemon.

Index

Constants

View Source
const DOCKER_UNIX_SOCKET = "unix:///var/run/docker.sock"

Variables

This section is empty.

Functions

func DockerLoad

func DockerLoad(image reference.Named, manifest *schema1.SignedManifest, layerPaths map[string]string, localIp string) error

DockerLoad performs a `docker load` of the given image with its manifest and layerPaths.

func DockerLoadTar

func DockerLoadTar(reader io.Reader) error

DockerLoadTar performs a `docker load` of a TAR containing the V1 docker load format.

func HasImage

func HasImage(imageId string) (bool, error)

HasImage returns true if the current Docker daemon reports that the image with the given ID exists.

Types

type V1LayerInfo

type V1LayerInfo struct {
	ID string `json:"id"`
}

V1LayerInfo holds information derived from a V1 history JSON blob.

func GetLayerInfo

func GetLayerInfo(layerHistory schema1.History) V1LayerInfo

GetLayerInfo returns the parsed V1 layer information for the given layer.

Jump to

Keyboard shortcuts

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