transport

package
v26.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 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.

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