Documentation ¶
Overview ¶
Package transport provides function to send request to remote endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Sender // Secure tells whether the connection is secure or not. Secure() bool // Scheme returns the connection protocol the client uses. Scheme() string // TLSConfig returns any TLS configuration the client uses. TLSConfig() *tls.Config }
Client is an interface that abstracts all remote connections.
func NewTransportWithHTTP ¶
NewTransportWithHTTP creates a new transport based on the provided proto, address and http client. It uses Docker's default http transport configuration if the client is nil. It does not modify the client's transport if it's not nil.
Directories ¶
Path | Synopsis |
---|---|
Package cancellable provides helper function to cancel http requests.
|
Package cancellable provides helper function to cancel http requests. |
Click to show internal directories.
Click to hide internal directories.