transport

package
v1.11.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const VersionMimetype = "application/vnd.docker.plugins.v1.2+json"

VersionMimetype is the Content-Type the engine sends to plugins.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestFactory

type RequestFactory interface {
	NewRequest(path string, data io.Reader) (*http.Request, error)
}

RequestFactory defines an interface that transports can implement to create new requests.

type Transport

type Transport interface {
	http.RoundTripper
	RequestFactory
}

Transport defines an interface that plugin transports must implement.

func NewHTTPTransport

func NewHTTPTransport(r http.RoundTripper, scheme, addr string) Transport

NewHTTPTransport creates a new httpTransport.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL