Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Token string `yaml:"token"` Products struct { CDN struct { Token string `yaml:"token,omitempty"` Enabled bool `yaml:"enable,omitempty"` Domains []string `yaml:"domains,omitempty"` Period string `yaml:"period,omitempty"` } `yaml:"cdn,omitempty"` OBJECT struct { Token string `yaml:"token,omitempty"` Enabled bool `yaml:"enable,omitempty"` Buckets []string `yaml:"buckets,omitempty"` } `yaml:"object,omitempty"` } `yaml:"products,omitempty"` }
Config represents the configuration for the exporter
func Load ¶
Load reads YAML from reader and unmarshal in Config
Click to show internal directories.
Click to hide internal directories.