package
1.5.0-rc2
Repository: https://github.com/microsoft/docker.git
Documentation: pkg.go.dev

# Functions

Code c/c from io.Copy() modified to handle escape sequence.
No description provided by the author
No description provided by the author
No description provided by the author
Figure out the path of our dockerinit (which may be SelfPath()).
No description provided by the author
Request a given URL and return an io.Reader.
GenerateRandomID returns an unique id.
GetCallerName introspects the call stack and returns the name of the function `depth` levels down in the stack.
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
No description provided by the author
No description provided by the author
ParseFlags is a utility function that adds a help flag if withHelp is true, calls cmd.Parse(args) and prints a relevant error message if there are incorrect number of arguments.
No description provided by the author
No description provided by the author
Reads a .dockerignore file and returns the list of file patterns to ignore.
ReadSymlinkedDirectory returns the target directory of a symlink.
No description provided by the author
ReplaceOrAppendValues returns the defaults with the overrides either replaced by env key or appended to the list.
No description provided by the author
Figure out the absolute path of our own binary (if it's still around).
Take a list of strings and escape them so they will be handled right when passed as arguments to an program via a shell.
No description provided by the author
TempDir returns the default directory to use for temporary files.
TestDirectory creates a new temporary directory and returns its path.
No description provided by the author
TruncateID returns a shorthand version of a string identifier for convenience.
ValidateContextDirectory checks if all the contents of the directory can be read and returns an error if some files can't be read symlinks which point to non-existing files don't trigger an error.
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
HTTPRequestFactory creates an HTTP request and applies a list of decorators on the request.
HTTPUserAgentDecorator appends the product/version to the user agent field of a request.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
An StatusError reports an unsuccessful exit by a command.
No description provided by the author
No description provided by the author
No description provided by the author
A net.Conn that sets a deadline for every Read or Write operation.
No description provided by the author

# Interfaces

HTTPRequestDecorator is used to change an instance of http.Request.
VersionInfo is used to model entities which has a version.