image

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: Apache-2.0 Imports: 12 Imported by: 4 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flatten added in v0.3.1

func Flatten(config *config.Config, id string, size int64, tw io.Reader) (string, error)

Flatten copies a tarred up series of files (passed in through the io.Reader handle) to the image where they are untarred. Returns the filename of the image created.

func Make added in v0.3.1

func Make(config *config.Config, layers []*Layer) (string, error)

Make copies N layers into a single image, ships it back to docker.

Types

type Layer added in v0.3.1

type Layer struct {
	// contains filtered or unexported fields
}

Layer is the metadata surrounding an image layer.

func Unpack added in v0.3.1

func Unpack(file string) ([]*Layer, string, error)

Unpack unpacks an image into the temporary filesystem. Returns a list of paths for each layer. Information about the image itself is not written to disk; the tarballs are just dumped.

First return value is the order of the layers. Then, the directory of the files kept so it can be removed later. The dir will always be returned if possible; even when a later operation returns an error.

func (*Layer) LayerID added in v0.3.1

func (l *Layer) LayerID() string

LayerID returns the layer ID associated with this layer.

Jump to

Keyboard shortcuts

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