Documentation
¶
Index ¶
- func ApplyLayer(dest string, layer io.Reader) (size int64, err error)deprecated
- func ApplyUncompressedLayer(dest string, layer io.Reader, options *archive.TarOptions) (int64, error)deprecated
- func NewArchiver(idMapping idtools.IdentityMapping) *archive.Archiverdeprecated
- func Tar(srcPath string, options *archive.TarOptions, root string) (io.ReadCloser, error)deprecated
- func Untar(tarArchive io.Reader, dest string, options *archive.TarOptions) errordeprecated
- func UntarUncompressed(tarArchive io.Reader, dest string, options *archive.TarOptions) errordeprecated
- func UntarWithRoot(tarArchive io.Reader, dest string, options *archive.TarOptions, root string) errordeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyLayer
deprecated
func ApplyUncompressedLayer
deprecated
added in
v1.8.0
func ApplyUncompressedLayer(dest string, layer io.Reader, options *archive.TarOptions) (int64, error)
ApplyUncompressedLayer parses a diff in the standard layer format from `layer`, and applies it to the directory `dest`.
Deprecated: use chrootarchive.ApplyUncompressedLayer insteead.
func NewArchiver
deprecated
func NewArchiver(idMapping idtools.IdentityMapping) *archive.Archiver
NewArchiver returns a new Archiver which uses chrootarchive.Untar
Deprecated: use chrootarchive.NewArchiver instead.
func Tar
deprecated
func Tar(srcPath string, options *archive.TarOptions, root string) (io.ReadCloser, error)
Tar tars the requested path while chrooted to the specified root.
Deprecated: use chrootarchive.Tar instead.
func Untar
deprecated
Untar reads a stream of bytes from `archive`, parses it as a tar archive, and unpacks it into the directory at `dest`.
Deprecated: use chrootarchive.Untar instead.
func UntarUncompressed
deprecated
added in
v1.8.0
UntarUncompressed reads a stream of bytes from tarArchive, parses it as a tar archive, and unpacks it into the directory at dest.
Deprecated: use chrootarchive.UntarUncompressed instead.
func UntarWithRoot
deprecated
func UntarWithRoot(tarArchive io.Reader, dest string, options *archive.TarOptions, root string) error
UntarWithRoot is the same as Untar, but allows you to pass in a root directory.
Deprecated: use chrootarchive.UntarWithRoot instead.
Types ¶
This section is empty.