package
28.0.1+incompatible
Repository: https://github.com/moby/docker.git
Documentation: pkg.go.dev

# Functions

ArchiveFormValues parses form values and turns them into ArchiveOptions.
BoolValue transforms a form value in different formats into a boolean type.
BoolValueOrDefault returns the default bool passed if the query param is missing, otherwise it's just a proxy to boolValue above.
CheckForJSON makes sure that the request's Content-Type is application/json.
CloseStreams ensures that a list for http streams are properly closed.
DecodePlatform decodes the OCI platform JSON string into a Platform struct.
HijackConnection interrupts the http response writer to get the underlying connection and operate with it.
Int64ValueOrDefault parses a form value into an int64 type.
Int64ValueOrZero parses a form value into an int64 type.
ParseForm ensures the request form is parsed even with invalid content types.
ReadJSON validates the request to have the correct content-type, and decodes the request's Body into out.
RepoTagReference parses form values "repo" and "tag" and returns a valid reference with repository and tag.
Uint32Value parses a form value into an uint32 type.
VersionFromContext returns an API version from the context using APIVersionKey.
WriteJSON writes the value v to the http response stream as json with standard json encoding.
WriteLogStream writes an encoded byte stream of log messages from the messages channel, multiplexing them with a stdcopy.Writer if mux is true.

# Structs

APIVersionKey is the client's requested API version.
ArchiveOptions stores archive information for different operations.

# Interfaces

ContainerDecoder specifies how to translate an io.Reader into container configuration.

# Type aliases

APIFunc is an adapter to allow the use of ordinary functions as Docker API endpoints.