Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultSDConfig = SDConfig{ Entitlement: "monitoring_entitled", Separator: ",", RefreshInterval: model.Duration(1 * time.Minute), }
DefaultSDConfig is the default Uyuni SD configuration.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
Discovery periodically performs Uyuni API requests. It implements the Discoverer interface.
type SDConfig ¶
type SDConfig struct { Server string `yaml:"server"` Username string `yaml:"username"` Password config.Secret `yaml:"password"` HTTPClientConfig config.HTTPClientConfig `yaml:",inline"` Entitlement string `yaml:"entitlement,omitempty"` Separator string `yaml:"separator,omitempty"` RefreshInterval model.Duration `yaml:"refresh_interval,omitempty"` }
SDConfig is the configuration for Uyuni based service discovery.
func (*SDConfig) NewDiscoverer ¶
func (c *SDConfig) NewDiscoverer(opts discovery.DiscovererOptions) (discovery.Discoverer, error)
NewDiscoverer returns a Discoverer for the Config.
func (*SDConfig) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.