package
20.10.0-rc1+incompatible
Repository: https://github.com/agilebits/moby.git
Documentation: pkg.go.dev

# Functions

ContentType sets the specified Content-Type request header.
DaemonHost return the daemon host string for this test execution.
DaemonTime provides the current time on the daemon host.
DaemonUnixTime returns the current time on the daemon host with nanoseconds precision.
Delete creates and execute a DELETE request on the specified host and endpoint, with the specified request modifiers.
Do creates and execute a request on the specified endpoint, with the specified request modifiers.
Get creates and execute a GET request on the specified host and endpoint, with the specified request modifiers.
Head creates and execute a HEAD request on the specified host and endpoint, with the specified request modifiers.
Host creates a modifier that sets the specified host as the request URL host.
JSON sets the Content-Type request header to json.
JSONBody creates a modifier that encodes the specified data to a JSON string and set it as request body.
Method creates a modifier that sets the specified string as the request method.
NewAPIClient returns a docker API client configured from environment variables.
Post
Post creates and execute a POST request on the specified host and endpoint, with the specified request modifiers.
RawContent sets the specified reader as body for the request.
RawString sets the specified string as body for the request.
ReadBody read the specified ReadCloser content and returns it.
SockConn opens a connection on the specified socket.
With adds a request modifier to the options.

# Structs

Options defines request options, like request modifiers and which host to target.