Documentation ¶
Overview ¶
Package fetcher provides a mechanism for fetching files from URLs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Timeout is the request timeout. Timeout time.Duration // Skip verification of insecure transports. InsecureSkipVerify bool }
Config parameterizes Fetcher behavior.
type Fetcher ¶
type Fetcher struct {
Config *Config
}
Fetcher can fetch files from URLs. If field Config is nil, defaults are used. At this time, only HTTP/HTTPS is supported, but it's possible other schemes (such as FTP) will be supported in future.
Click to show internal directories.
Click to hide internal directories.