package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/docker/cli.git
Documentation: pkg.go.dev
# Functions
ContentType sets the specified Content-Type request header.
DaemonHost return the daemon host string for this test execution.
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.
DoOnHost creates and execute a request on the specified host and endpoint, with the specified request modifiers.
Get creates and execute a GET request on the specified host and endpoint, with the specified request modifiers.
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.
New creates a new http Request to the specified host and endpoint, with the specified request modifiers.
NewClient returns a new Docker API client.
NewClientForHost returns a Docker API client for the host.
NewEnvClientWithVersion returns a docker client with a specified version.
NewHTTPClient creates an http client for the specific host.
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.
SockRequest create a request against the specified host (with method, endpoint and other request modifier) and returns the status code, and the content as an byte slice Deprecated: use request.Do instead.
SockRequestHijack creates a connection to specified host (with method, contenttype, …) and returns a hijacked connection and the output as a `bufio.Reader`.
SockRequestRaw create a request against the specified host (with method, endpoint and other request modifier) and returns the http response, the output as a io.ReadCloser Deprecated: use request.Do (or Get, Delete, Post) instead.