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

func (t HTTPTransport) NewRequest(path string, data io.Reader) (*http.Request, error)

NewRequest creates a new http.Request and sets the URL scheme and address with the transport's fields.

Source Files

http.go mimetype.go

Version
v26.0.1+incompatible
Published
Apr 10, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
3 seconds ago

Tools for package owners.