chrootarchive

package
v28.1.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyLayer deprecated

func ApplyLayer(dest string, layer io.Reader) (size int64, err error)

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 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

func Untar(tarArchive io.Reader, dest string, options *archive.TarOptions) error

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

func UntarUncompressed(tarArchive io.Reader, dest string, options *archive.TarOptions) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL