package transport
import "github.com/docker/engine-api/client/transport"
Package transport provides function to send request to remote endpoints.
Index ¶
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.
type Sender ¶
type Sender interface { // Do sends request to a remote endpoint. Do(*http.Request) (*http.Response, error) }
Sender is an interface that clients must implement to be able to send requests to a remote connection.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
client/transport/cancellable | Package cancellable provides helper function to cancel http requests. |
- Version
- v0.4.0 (latest)
- Published
- Jul 27, 2016
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 6 days ago –
Tools for package owners.