package transport
import "github.com/dotcloud/docker/pkg/plugins/transport"
Index ¶
Constants ¶
const VersionMimetype = "application/vnd.docker.plugins.v1.2+json"
VersionMimetype is the Content-Type the engine sends to plugins.
For convenience, there is an alias in github.com/docker/docker/pkg/plugins.VersionMimetype.
Types ¶
type HTTPTransport ¶
type HTTPTransport struct { http.RoundTripper // contains filtered or unexported fields }
HTTPTransport holds an http.RoundTripper and information about the scheme and address the transport sends request to.
func NewHTTPTransport ¶
func NewHTTPTransport(r http.RoundTripper, scheme, addr string) *HTTPTransport
NewHTTPTransport creates a new HTTPTransport.
func (HTTPTransport) NewRequest ¶
NewRequest creates a new http.Request and sets the URL scheme and address with the transport's fields.
Source Files ¶
- Version
- v26.0.2+incompatible
- Published
- Apr 18, 2024
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 hour ago –
Tools for package owners.