Documentation ¶
Index ¶
- func ApplyLayer(dest string, layer archive.ArchiveReader) error
- func CopyFileWithTar(src, dst string) (err error)
- func CopyWithTar(src, dst string) error
- func TarUntar(src, dst string) error
- func Untar(archive io.Reader, dest string, options *archive.TarOptions) error
- func UntarPath(src, dst string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyLayer ¶
func ApplyLayer(dest string, layer archive.ArchiveReader) 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.