Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{}
Functions ¶
Types ¶
type Config ¶
type Config struct { Global Global `yaml:"global"` TargetGroups []TargetGroup `yaml:"target_groups"` }
func (*Config) SetDirectory ¶
type Global ¶
type Global struct { AnsibleSSHKeyPath string `yaml:"ansible_ssh_key_path"` AnsibleBecomePasswordFile string `yaml:"ansible_become_password_file"` AnsibleUser string `yaml:"ansible_user"` SDSyncTime model.Duration `yaml:"sd_sync_time"` DataDir string `yaml:"data_directory"` AnsibleTOFU bool `yaml:"ansible_trust_on_firs_use"` EnableARA bool `yaml:"enable_ara"` ARAListen string `yaml:"ara_listen_address"` }
func (*Global) SetDirectory ¶
func (*Global) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface.
type Modules ¶
func (*Modules) UnmarshalYAML ¶
type TargetGroup ¶
type TargetGroup struct { Name string `yaml:"name"` Modules *Modules `yaml:"modules"` Targets *Targets `yaml:"targets"` }
func (*TargetGroup) SetDirectory ¶
func (t *TargetGroup) SetDirectory(directory string)
type Targets ¶
type Targets struct { ServiceDiscoveryConfigs discovery.Configs `yaml:"-"` RelabelConfigs []*relabel.Config `yaml:"relabel_configs,omitempty"` }
func (*Targets) SetDirectory ¶
func (*Targets) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.