docker: github.com/docker/docker/pkg/plugins/transport Index | Files

package transport

import "github.com/docker/docker/pkg/plugins/transport"

Index

Package Files

http.go transport.go

Constants

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

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

type RequestFactory Uses

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 Uses

type Transport interface {
    http.RoundTripper
    RequestFactory
}

Transport defines an interface that plugin transports must implement.

func NewHTTPTransport Uses

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

NewHTTPTransport creates a new httpTransport.

Package transport imports 3 packages (graph) and is imported by 185 packages. Updated 2020-03-02. Refresh now. Tools for package owners.