package chrootarchive
import "github.com/docker/cli/components/engine/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(idMappings *idtools.IDMappings) *archive.Archiver
- func Untar(tarArchive io.Reader, dest string, options *archive.TarOptions) error
- func UntarUncompressed(tarArchive io.Reader, dest string, options *archive.TarOptions) error
Functions ¶
func ApplyLayer ¶
ApplyLayer parses a diff in the standard layer format from `layer`, and applies it to the directory `dest`. The stream `layer` can only be uncompressed. Returns the size in bytes of the contents of the layer.
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`. The stream `layer` can only be uncompressed. Returns the size in bytes of the contents of the layer.
func NewArchiver ¶
func NewArchiver(idMappings *idtools.IDMappings) *archive.Archiver
NewArchiver returns a new Archiver which uses chrootarchive.Untar
func Untar ¶
Untar reads a stream of bytes from `archive`, parses it as a tar archive, and unpacks it into the directory at `dest`. The archive may be compressed with one of the following algorithms:
identity (uncompressed), gzip, bzip2, xz.
func UntarUncompressed ¶
UntarUncompressed reads a stream of bytes from `archive`, parses it as a tar archive, and unpacks it into the directory at `dest`. The archive must be an uncompressed stream.
Source Files ¶
archive.go archive_unix.go chroot_unix.go diff.go diff_unix.go init_unix.go
- Version
- v17.11.0-ce-rc2+incompatible
- Published
- Nov 1, 2017
- Platform
- js/wasm
- Imports
- 15 packages
- Last checked
- 4 hours ago –
Tools for package owners.