package transport

import "github.com/docker/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.

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.

Source Files

http.go transport.go

Version
v1.11.0-rc1
Published
Mar 23, 2016
Platform
js/wasm
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.