package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/sams1990/dockerrepo.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.
GetHTTPErrorStatusCode retrieves status code from error message.
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.
MakeErrorHandler makes an HTTP handler that decodes a Docker error and returns it in the response.
ParseForm ensures the request form is parsed even with invalid content types.
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.
# Constants
APIVersionKey is the client's requested API version.
# Structs
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.