Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DockerHTTPError ¶
func DockerHTTPError(w http.ResponseWriter, err error)
DockerHTTPError returns a 200 status to docker with an error struct. It returns 500 if marshalling failed.
func RESTHTTPError ¶
func RESTHTTPError(w http.ResponseWriter, err error)
RESTHTTPError returns a 500 status with the error.
Types ¶
type API ¶
type API struct { DockerPlugin bool Client *config.Client Global **config.Global // double pointer so we can track watch updates }
API is a typed representation of API handlers.
type VolumeCreateRequest ¶
VolumeCreateRequest is taken from struct Request in https://github.com/calavera/docker-volume-api/blob/master/api.go#L27
type VolumeCreateResponse ¶
VolumeCreateResponse is taken from struct Response in https://github.com/calavera/docker-volume-api/blob/master/api.go#L33
type VolumeGetRequest ¶
type VolumeGetRequest struct {
Name string
}
VolumeGetRequest is taken from this struct in https://github.com/docker/docker/blob/master/volume/drivers/proxy.go#L187
type VolumeGetResponse ¶
VolumeGetResponse is taken from struct volumeDriverProxyGetResponse in https://github.com/docker/docker/blob/master/volume/drivers/proxy.go#L191
type VolumeList ¶
VolumeList is taken from struct volumeDriverProxyListResponse in https://github.com/docker/docker/blob/master/volume/drivers/proxy.go#L163