package
0.7.6
Repository: https://github.com/rollbar/docker.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CheckLocalDns looks into the /etc/resolv.conf, it returns true if there is a local nameserver or if there is no nameserver.
Compare two KernelVersionInfo struct.
FIXME: this is deprecated by CopyWithTar in archive.go.
Code c/c from io.Copy() modified to handle escape sequence.
No description provided by the author
No description provided by the author
Debug function, if the debug flag is set, then display.
No description provided by the author
Figure out the path of our dockerinit (which may be SelfPath()).
Request a given URL and return an io.Reader.
No description provided by the author
FollowSymlink will follow an existing link and scope it to the root path provided.
GetCallerName introspects the call stack and returns the name of the function `depth` levels down in the stack.
No description provided by the author
GetNameserversAsCIDR returns nameservers (if any) listed in /etc/resolv.conf as CIDR blocks (e.g., "1.2.3.4/32") This function's output is intended for net.ParseCIDR.
No description provided by the author
GetResolvConf opens and read the content of /etc/resolv.conf.
No description provided by the author
Go is a basic promise implementation: it wraps calls a function in a goroutine, and returns a channel which will later return the function's return value.
No description provided by the author
HumanDuration returns a human-readable approximation of a duration (eg.
HumanSize returns a human-readable approximation of a size using SI standard (eg.
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
NewStdWriter instanciates a new Writer.
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
FIXME: Change this not to receive default value as parameter.
No description provided by the author
Get a repos name and returns the right reposName + tag The tag can be confusing because of a port in a repository name.
No description provided by the author
No description provided by the author
Parses a human-readable string representing an amount of RAM in bytes, kibibytes, mebibytes or gibibytes, and returns the number of bytes, or -1 if the string is unparseable.
No description provided by the author
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.
StdCopy is a modified version of io.Copy.
No description provided by the author
StripComments parses input into lines and strips away comments.
TestDirectory creates a new temporary directory and returns its path.
TreeSize walks a directory tree and returns its total size in bytes.
No description provided by the author
TruncateID returns a shorthand version of a string identifier for convenience.
UserLookup check if the given username or uid is present in /etc/passwd and returns the user struct.

# Constants

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
whether or not Docker itself was compiled statically via ./hack/make.sh binary.
custom location to search for a valid dockerinit binary (available for packagers as a last resort escape hatch).
sha1sum of separate static dockerinit, if Docker itself was compiled dynamically via ./hack/make.sh dynbinary.
No description provided by the author
No description provided by the author
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
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
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
No description provided by the author
TruncIndex allows the retrieval of string identifiers by any of their unique prefixes.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

A common interface to access the Fatal method of both testing.B and testing.T.
HTTPRequestDecorator is used to change an instance of http.Request.
VersionInfo is used to model entities which has a version.

# Type aliases

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