Documentation ¶
Overview ¶
Package connhelper provides helpers for connecting to a remote daemon host with custom logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionHelper ¶
type ConnectionHelper struct { Dialer func(ctx context.Context, network, addr string) (net.Conn, error) Host string // dummy URL used for HTTP requests. e.g. "http://docker" }
ConnectionHelper allows to connect to a remote host with custom stream provider binary.
func GetConnectionHelper ¶
func GetConnectionHelper(daemonURL string) (*ConnectionHelper, error)
GetConnectionHelper returns Docker-specific connection helper for the given URL. GetConnectionHelper returns nil without error when no helper is registered for the scheme. URL is like "ssh://me@server01".
Click to show internal directories.
Click to hide internal directories.