package chrootarchive

import "github.com/docker/docker/pkg/chrootarchive"

Index

Functions

func ApplyLayer

func ApplyLayer(dest string, layer archive.ArchiveReader) (size int64, err error)

func CopyFileWithTar

func CopyFileWithTar(src, dst string) (err error)

CopyFileWithTar emulates the behavior of the 'cp' command-line for a single file. It copies a regular file from path `src` to path `dst`, and preserves all its metadata.

If `dst` ends with a trailing slash '/', the final destination path will be `dst/base(src)`.

func CopyWithTar

func CopyWithTar(src, dst string) error

CopyWithTar creates a tar archive of filesystem path `src`, and unpacks it at filesystem path `dst`. The archive is streamed directly with fixed buffering and no intermediary disk IO.

func TarUntar

func TarUntar(src, dst string) error

func Untar

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

func UntarPath

func UntarPath(src, dst string) error

UntarPath is a convenience function which looks for an archive at filesystem path `src`, and unpacks it at `dst`.

Source Files

archive.go diff.go init.go

Version
v1.7.0
Published
Jun 18, 2015
Platform
js/wasm
Imports
12 packages
Last checked
2 minutes ago

Tools for package owners.