transport

package
v25.0.18+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 3 Imported by: 191 modules, 171 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

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