package
1.7.1
Repository: https://github.com/devx/docker.git
Documentation: pkg.go.dev

# README

This code provides helper functions for dealing with archive files.

# Functions

ApplyLayer parses a diff in the standard layer format from `layer`, and applies it to the directory `dest`.
canonicalTarNameForPath returns platform-specific filepath to canonical posix-style path for tar archival.
Changes walks the path rw and determines changes for the files in the path, with respect to the parent layers.
ChangesDirs compares two directories and generates an array of Change objects describing the changes.
ChangesSize calculates the size in bytes of the provided changes, based on newDir.
CmdStream executes a command, and returns its stdout as a stream.
No description provided by the author
CopyFileWithTar emulates the behavior of the 'cp' command-line for a single file.
CopyWithTar creates a tar archive of filesystem path `src`, and unpacks it at filesystem path `dst`.
No description provided by the author
No description provided by the author
ExportChanges produces an Archive from the provided changes, relative to dir.
Generate generates a new archive from the content provided as input.
No description provided by the author
NewTempArchive reads the content of src into a temporary file, and returns the contents of that file as an archive.
Tar creates an archive from the directory at `path`, and returns it as a stream of bytes.
TarUntar is a convenience function which calls Tar and Untar, with the output of one piped into the other.
TarWithOptions creates an archive from the directory at `path`, only including files whose relative paths are included in `options.IncludeFiles` (if non-nil) or not in `options.ExcludePatterns`.
No description provided by the author
No description provided by the author
Untar reads a stream of bytes from `archive`, parses it as a tar archive, and unpacks it into the directory at `dest`.
UntarPath is a convenience function which looks for an archive at filesystem path `src`, and unpacks it at `dst`.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author