package chrootarchive
import "github.com/dotcloud/docker/pkg/chrootarchive"
Index ¶
- func ApplyLayer(dest string, layer io.Reader) (size int64, err error)
- func ApplyUncompressedLayer(dest string, layer io.Reader, options *archive.TarOptions) (int64, error)
- func NewArchiver(idMapping idtools.IdentityMapping) *archive.Archiver
- func Tar(srcPath string, options *archive.TarOptions, root string) (io.ReadCloser, error)
- func Untar(tarArchive io.Reader, dest string, options *archive.TarOptions) error
- func UntarUncompressed(tarArchive io.Reader, dest string, options *archive.TarOptions) error
- func UntarWithRoot(tarArchive io.Reader, dest string, options *archive.TarOptions, root string) error
Functions ¶
func ApplyLayer ¶
ApplyLayer parses a diff in the standard layer format from `layer`, and applies it to the directory `dest`.
Deprecated: use chrootarchive.ApplyLayer insteead.
func ApplyUncompressedLayer ¶
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 ¶
func NewArchiver(idMapping idtools.IdentityMapping) *archive.Archiver
NewArchiver returns a new Archiver which uses chrootarchive.Untar
Deprecated: use chrootarchive.NewArchiver instead.
func Tar ¶
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 ¶
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 ¶
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 ¶
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.
Source Files ¶
archive_deprecated.go diff_deprecated.go
- Version
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 4 hours ago –
Tools for package owners.