Documentation
¶
Index ¶
- type Config
- func (c *Config) Merge(c2 *Config)
- func (c *Config) ParseAutoUpdate(value string) error
- func (c *Config) ParseCACerts(value string) error
- func (c *Config) ParseColor(value string) error
- func (c *Config) ParseDNSServer(value string) error
- func (c *Config) ParseFormat(value string) error
- func (c *Config) ParseHTTP(value string) error
- func (c *Config) ParseHeader(value string) error
- func (c *Config) ParseIgnoreStatus(value string) error
- func (c *Config) ParseImageSetting(value string) error
- func (c *Config) ParseInsecure(value string) error
- func (c *Config) ParseNoEncode(value string) error
- func (c *Config) ParseNoPager(value string) error
- func (c *Config) ParseProxy(value string) error
- func (c *Config) ParseQuery(value string) error
- func (c *Config) ParseRedirects(value string) error
- func (c *Config) ParseSilent(value string) error
- func (c *Config) ParseTLS(value string) error
- func (c *Config) ParseTimeout(value string) error
- func (c *Config) ParseVerbosity(value string) error
- func (c *Config) Set(key, val string) error
- type File
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { AutoUpdate *time.Duration CACerts []*x509.Certificate Color core.Color DNSServer *url.URL Format core.Format Headers []core.KeyVal HTTP core.HTTPVersion IgnoreStatus *bool Image core.ImageSetting Insecure *bool NoEncode *bool NoPager *bool Proxy *url.URL QueryParams []core.KeyVal Redirects *int Silent *bool Timeout *time.Duration TLS *uint16 Verbosity *int // contains filtered or unexported fields }
Config represents the configuration options for fetch.
func (*Config) ParseAutoUpdate ¶ added in v0.7.3
func (*Config) ParseCACerts ¶ added in v0.11.0
func (*Config) ParseColor ¶
func (*Config) ParseDNSServer ¶
func (*Config) ParseFormat ¶
func (*Config) ParseHeader ¶
func (*Config) ParseIgnoreStatus ¶
func (*Config) ParseImageSetting ¶ added in v0.8.0
func (*Config) ParseInsecure ¶
func (*Config) ParseNoEncode ¶
func (*Config) ParseNoPager ¶
func (*Config) ParseProxy ¶
func (*Config) ParseQuery ¶
func (*Config) ParseRedirects ¶
func (*Config) ParseSilent ¶
func (*Config) ParseTimeout ¶
func (*Config) ParseVerbosity ¶
Click to show internal directories.
Click to hide internal directories.