Documentation ¶
Overview ¶
Package generic implements a generic provider that can fetch an url and grap the picture form an XPath
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { LivenessCheck time.Duration `env:"LIVENESS_CHECK,default=5m"` ProbeTimeout time.Duration `env:"PROBE_TIMEOUT,default=60m"` HTTPTimeout time.Duration `env:"HTTP_TIMEOUT,default=10s"` TransportTimeout time.Duration `env:"TRANSPORT_TIMEOUT,default=5s"` URL *url.URL `env:"URL,required"` Path string `env:"XPATH"` Mode string `env:"MODE,default=center"` // fill is possible Scale float64 `env:"SCALE, default=1"` // contains filtered or unexported fields }
Provider provider
func (*Provider) Fetch ¶
Fetch an image. It returns any error that prevents the image to be downloaded
Click to show internal directories.
Click to hide internal directories.