Versions in this module Expand all Collapse all v0 v0.2.0 Jan 27, 2015 Changes in this version + var ErrorMultipleBranchesSameParent = errors.New(...) + var ErrorNoFROM = errors.New("no root layer found") + var ErrorNoLast = errors.New("unable to determine last layer in image") + var LayerFileIgnoreRegex = regexp.MustCompile(`^\.$|^\.\.$|^\.\/$`) type Config + CPUShares int64 + DNS []string type ContainerConfig + CPUShares int64 + DNS []string + type Export struct + Layers map[string]*Layer + Repositories map[string]*tagInfo + func NewExport() *Export + func (e *Export) ChildOf(parent string) *Layer + func (e *Export) FirstSquash() *Layer + func (e *Export) GetByID(idPrefix string) (*Layer, error) + func (e *Export) IngestImageMetadata(tarstream io.Reader) error + func (e *Export) InsertLayer(parent string) (*Layer, error) + func (e *Export) Last() *Layer + func (e *Export) RebuildImage(squashLayer *Layer, outstream io.Writer, squashLayerFile *os.File) (imageID string, err error) + func (e *Export) ReplaceLayer(orig *Layer) error + func (e *Export) RewriteChildren(from *Layer, squashID string) error + func (e *Export) Root() *Layer + func (e *Export) SquashLayers(into, from *Layer, tarstream io.Reader, outstream io.Writer) (imageID string, err error) + type Layer struct + DirHeader *tar.Header + JSONHeader *tar.Header + LayerConfig *LayerConfig + LayerTarHeader *tar.Header + VersionHeader *tar.Header + func (l *Layer) Clone() *Layer + func (l *Layer) Cmd() string type LayerConfig + ID string + func NewLayerConfig(id, parent, comment string) *LayerConfig + type LayerFileType uint8 + const Directory + const Ignore + const JSON + const LayerTar + const Repositories + const Unknown + const Version + func ParseType(t *tarball.TarFile) LayerFileType v0.1.1 Dec 23, 2014 v0.1.0 Dec 22, 2014 Changes in this version + var Verbose bool + func Squash(inStream io.Reader) (io.Reader, error) + type Config struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + CpuShares int64 + Dns []string + Domainname string + Entrypoint []string + Env []string + ExposedPorts map[Port]struct{} + Hostname string + Image string + Memory int64 + MemorySwap int64 + NetworkDisabled bool + OnBuild []string + OpenStdin bool + PortSpecs []string + StdinOnce bool + Tty bool + User string + Volumes map[string]struct{} + VolumesFrom string + WorkingDir string + type ContainerConfig struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + CpuShares int64 + Dns []string + Domainname string + Entrypoint []string + Env []string + Hostname string + Image string + Memory int64 + MemorySwap int64 + NetworkDisabled bool + OnBuild []string + OpenStdin bool + PortSpecs []string + StdinOnce bool + Tty bool + User string + Volumes map[string]struct{} + VolumesFrom string + type LayerConfig struct + Architecture string + Comment string + Config *Config + Container string + Created time.Time + DockerVersion string + Id string + Parent string + V1ContainerConfig *ContainerConfig + V2ContainerConfig *ContainerConfig + func (l *LayerConfig) ContainerConfig() *ContainerConfig + type Port string + func (p Port) Port() string + func (p Port) Proto() string + type TagInfo map[string]string