package transport

import "github.com/docker/cli/components/engine/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
v17.10.0-ce+incompatible
Published
Oct 17, 2017
Platform
linux/amd64
Imports
3 packages
Last checked
6 seconds ago

Tools for package owners.