package chrootarchive
import "github.com/docker/docker/pkg/chrootarchive"
Index ¶
- func ApplyLayer(dest string, layer archive.ArchiveReader) (size int64, err error)
- func CopyFileWithTar(src, dst string) (err error)
- func CopyWithTar(src, dst string) error
- func TarUntar(src, dst string) error
- func Untar(tarArchive io.Reader, dest string, options *archive.TarOptions) error
- func UntarPath(src, dst string) error
Functions ¶
func ApplyLayer ¶
func ApplyLayer(dest string, layer archive.ArchiveReader) (size int64, err error)
func CopyFileWithTar ¶
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 ¶
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 Untar ¶
func UntarPath ¶
UntarPath is a convenience function which looks for an archive at filesystem path `src`, and unpacks it at `dst`.
Source Files ¶
- Version
- v1.6.0-rc1
- Published
- Mar 23, 2015
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 16 minutes ago –
Tools for package owners.