# Functions
Code c/c from io.Copy() modified to handle escape sequence.
No description provided by the author
No description provided by the author
DigestReference returns true if ref is a digest reference; i.e.
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.
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
ImageReference combines `repo` and `ref` and returns a string representing the combination.
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.
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
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
Wrap a concrete io.Writer and hold a count of the number of bytes written to the writer during a "session".
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.