Versions in this module Expand all Collapse all v1 v1.3.1 Feb 5, 2015 v1.3.0 Feb 2, 2015 v1.2.2 Jan 20, 2015 v1.2.1 Jan 14, 2015 v1.2.0 Jan 9, 2015 Changes in this version + const ChangeAdd + const ChangeDelete + const ChangeModify + var ErrNotImplemented = errors.New("Function not implemented") + func ApplyLayer(dest string, layer ArchiveReader) error + func ChangesSize(newDir string, changes []Change) int64 + func CmdStream(cmd *exec.Cmd, input io.Reader) (io.ReadCloser, error) + func CompressStream(dest io.WriteCloser, compression Compression) (io.WriteCloser, error) + func CopyFileWithTar(src, dst string) (err error) + func CopyWithTar(src, dst string) error + func DecompressStream(archive io.Reader) (io.ReadCloser, error) + func IsArchive(header []byte) bool + func Tar(path string, compression Compression) (io.ReadCloser, error) + func TarUntar(src, dst string) error + func TarWithOptions(srcPath string, options *TarOptions) (io.ReadCloser, error) + func Unpack(decompressedArchive io.Reader, dest string, options *TarOptions) error + func UnpackLayer(dest string, layer ArchiveReader) error + func Untar(archive io.Reader, dest string, options *TarOptions) error + func UntarPath(src, dst string) error + type Archive io.ReadCloser + func ExportChanges(dir string, changes []Change) (Archive, error) + func Generate(input ...string) (Archive, error) + type ArchiveReader io.Reader + type Archiver struct + Untar func(io.Reader, string, *TarOptions) error + func (archiver *Archiver) CopyFileWithTar(src, dst string) (err error) + func (archiver *Archiver) CopyWithTar(src, dst string) error + func (archiver *Archiver) TarUntar(src, dst string) error + func (archiver *Archiver) UntarPath(src, dst string) 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 + type FileInfo struct + func (info *FileInfo) Changes(oldInfo *FileInfo) []Change + func (root *FileInfo) LookUp(path string) *FileInfo + type TarOptions struct + Compression Compression + Excludes []string + Includes []string + NoLchown bool + type TempArchive struct + Size int64 + func NewTempArchive(src Archive, dir string) (*TempArchive, error) + func (archive *TempArchive) Read(data []byte) (int, error)