Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct { LivenessCheck time.Duration `envconfig:"LIVENESS_CHECK" default:"5m" required:"true"` ProbeTimeout time.Duration `envconfig:"PROBE_TIMEOUT" default:"60m" required:"true"` HTTPTimeout time.Duration `envconfig:"HTTP_TIMEOUT" default:"10s" required:"true"` TransportTimeout time.Duration `envconfig:"TRANSPORT_TIMEOUT" default:"5s" required:"true"` HTTPClient *http.Client `ignored:"true"` }
Downloader
func NewDownloader ¶
func NewDownloader(withHeaders http.Header) (*Downloader, error)
Configure the provider with environment variables
func (*Downloader) Doc ¶
func (d *Downloader) Doc(w io.Writer)
func (*Downloader) Usage ¶
func (d *Downloader) Usage()
func (*Downloader) WaitOnline ¶
func (d *Downloader) WaitOnline(ctx context.Context, u string) error
WaitOnline check if the service is online, every tick; it returns when the service is up StartProbe only returns when the provider is reachable or in case of context cancelation
Click to show internal directories.
Click to hide internal directories.