Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptConfigFile ¶
func EncryptConfigFile(filePath string)
EncryptConfigFile will encrypt all the passwords in the full file.
Types ¶
type Config ¶
type Config struct {
// Debug
Debug bool
Copyrights bool
Quiet bool
Version bool
// Config
ConfigFile string
EncryptPasswords bool
EncryptKey string
// Collector Settings
Concurrency int
Interval time.Duration
Timeout time.Duration
AllowInsecureSSH bool
DisableCollection bool
Daemonize bool
// Git
GitPush bool
GitAuth bool
GitUser string
GitPrivateKey string
// User Settings
Workspace string
RunResult string
DefaultUser string
DefaultPass string
// Mail
EmailEnabled bool
EmailTo string
EmailFrom string
EmailSubject string
// SMTP Plain Auth
SMTPHost string
SMTPPort int
SMTPUser string
SMTPPass string
// Webserver
WebserverEnabled bool
HTTPListen string
// Devices
Devices []DeviceConfig
}
Config holds the general application settings.
type DeviceConfig ¶
type DeviceConfig struct {
Name string
Host string
Type string
User string
Pass string
UnlockPass string // UnlockPass is used to access xtd-cli-mode on certain hp/comware devices.
Port int
Ciphers string
Disabled bool
CustomTimeout time.Duration
CommandTimeout time.Duration
// Channel to track device collection failures
FailChan chan bool
// Number of failures to trigger an alert. A value of 0 disables alerts
FailureWarning int
}
DeviceConfig holds the device specific settings.
func (DeviceConfig) GetName ¶
func (d DeviceConfig) GetName() string
GetName provides a simple implementation for the Collector interface.
Click to show internal directories.
Click to hide internal directories.