Versions in this module Expand all Collapse all v1 v1.3.0 Oct 15, 2014 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 string, dst string) error + func TarWithOptions(srcPath string, options *TarOptions) (io.ReadCloser, 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 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)