# Functions
CheckRedirect specifies the policy for dealing with redirect responses: If the request is non-GET return ErrRedirect, otherwise use the last response.
ErrorConnectionFailed returns an error with host in the error message when connection to docker daemon failed.
FromEnv configures the client with values from environment variables.
IsErrConnectionFailed returns true if the error is caused by connection failed.
IsErrNotFound returns true if the error is a NotFound error, which is returned by the API when some object is not found.
IsErrNotImplemented returns true if the error is a NotImplemented error.
IsErrUnauthorized returns true if the error is caused when a remote registry authentication fails
Deprecated: use errdefs.IsUnauthorized.
NewClientWithOpts initializes a new API client with a default HTTPClient, and default API host and version.
ParseHostURL parses a url string, validates the string is a host url, and returns the parsed URL.
WithDialContext applies the dialer to the client transport.
WithHost overrides the client host with the specified one.
WithHostFromEnv overrides the client host with the host specified in the DOCKER_HOST (EnvOverrideHost) environment variable.
WithHTTPClient overrides the client http client with the specified one.
WithHTTPHeaders overrides the client default http headers.
WithJWTToken applies a jwt token and the user to the client transport.
WithScheme overrides the client scheme with the specified one.
WithTimeout configures the time limit for requests made by the HTTP client.
WithTLSClientConfig applies a tls config to the client transport.
WithTLSClientConfigFromEnv configures the client's TLS settings with the settings in the DOCKER_CERT_PATH and DOCKER_TLS_VERIFY environment variables.
WithVersion overrides the client version with the specified one.
# Constants
No description provided by the author
EnvOverrideCertPath is the name of the environment variable that can be used to specify the directory from which to load the TLS certificates (ca.pem, cert.pem, key.pem) from.
EnvOverrideHost is the name of the environment variable that can be used to override the default host to connect to (DefaultEnvdServerHost).
EnvTLSVerify is the name of the environment variable that can be used to enable or disable TLS certificate verification.
# Variables
No description provided by the author
ErrRedirect is the error returned by checkRedirect when the request is non-GET.
# Type aliases
Opt is a configuration option to initialize a client.