Documentation
¶
Index ¶
- Variables
- func ConfigureManagerClient(opts Options)
- func ConfigureWorkerClient(opts Options)
- func Manager() *http.Client
- func ManagerScheme() string
- func ManagerURL(address, path string) string
- func Plain() *http.Client
- func Reset()
- func Worker() *http.Client
- func WorkerLongOp() *http.Client
- func WorkerScheme() string
- func WorkerURL(address, path string) string
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientTimeout = 10 * time.Second
overridden by client config if specified
View Source
var LongOpTimeout = 15 * time.Minute
bounds long-running operations against worker apis, such as image pulls
Functions ¶
func ConfigureManagerClient ¶
func ConfigureManagerClient(opts Options)
func ConfigureWorkerClient ¶
func ConfigureWorkerClient(opts Options)
func ManagerScheme ¶
func ManagerScheme() string
reports the URL scheme ("http" or "https") currently configured for manager API URLs
func ManagerURL ¶
builds a manager API URL in the configured scheme: "<scheme>://<address><path>". address is a "host:port" pair
func WorkerLongOp ¶
client for long-running operations against worker apis shares the worker client's TLS/auth transport, but uses LongOpTimeout
func WorkerScheme ¶
func WorkerScheme() string
reports the URL scheme ("http" or "https") currently configured for worker API URLs
Types ¶
Click to show internal directories.
Click to hide internal directories.