Versions in this module Expand all Collapse all v0 v0.7.1 Dec 6, 2013 Changes in this version + const ChangeAdd + const ChangeDelete + const ChangeModify + func ApplyLayer(dest string, layer Archive) error + func ChangesSize(newDir string, changes []Change) int64 + func CmdStream(cmd *exec.Cmd, input *string, atEnd func()) (io.Reader, error) + func CopyFileWithTar(src, dst string) error + func CopyWithTar(src, dst string) error + func Tar(path string, compression Compression) (io.Reader, error) + func TarFilter(path string, options *TarOptions) (io.Reader, error) + func TarUntar(src string, filter []string, dst string) error + func Untar(archive io.Reader, path string, options *TarOptions) error + func UntarPath(src, dst string) error + type Archive io.Reader + func ExportChanges(dir string, changes []Change) (Archive, error) + type Change struct + Kind ChangeType + Path string + func Changes(layers []string, rw string) ([]Change, error) + func ChangesDirs(newDir, oldDir string) ([]Change, error) + func (change *Change) String() string + type ChangeType int + type Compression int + const Bzip2 + const Gzip + const Uncompressed + const Xz + func DetectCompression(source []byte) Compression + func (compression *Compression) Extension() string + func (compression *Compression) Flag() string + type FileInfo struct + func (info *FileInfo) Changes(oldInfo *FileInfo) []Change + func (root *FileInfo) LookUp(path string) *FileInfo + type TarOptions struct + Compression Compression + CreateFiles []string + Excludes []string + Includes []string + Recursive bool + type TempArchive struct + Size int64 + func NewTempArchive(src Archive, dir string) (*TempArchive, error) + func (archive *TempArchive) Read(data []byte) (int, error)