Versions in this module Expand all Collapse all v1 v1.0.1 Jul 6, 2015 v0 v0.5.1 May 18, 2015 Changes in this version + const ChangeAdd + const ChangeDelete + const ChangeModify + var ErrNotImplemented = errors.New("Function not implemented") + func ApplyLayer(dest string, layer ArchiveReader) (int64, error) + func CanonicalTarNameForPath(p string) (string, 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) (size int64, err 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 + ExcludePatterns []string + IncludeFiles []string + Name string + NoLchown bool + type TempArchive struct + Size int64 + func NewTempArchive(src Archive, dir string) (*TempArchive, error) + func (archive *TempArchive) Close() error + func (archive *TempArchive) Read(data []byte) (int, error)