Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfigValues = AppConfig{ Log: Logging{ Level: "", FileLocation: "", }, NextlinuxDetails: connection.NextlinuxInfo{ Account: "admin", HTTP: connection.HTTPConfig{ Insecure: false, TimeoutSeconds: 10, }, }, Region: "", PollingIntervalSeconds: 300, Quiet: false, DryRun: false, }
View Source
var ErrConfigFileNotFound = fmt.Errorf("application config file not found")
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { Log Logging `mapstructure:"log"` CliOptions CliOnlyOptions PollingIntervalSeconds int `mapstructure:"polling-interval-seconds"` NextlinuxDetails connection.NextlinuxInfo `mapstructure:"nextlinux"` Region string `mapstructure:"region"` Quiet bool `mapstructure:"quiet"` // if true do not log the inventory report to stdout DryRun bool `mapstructure:"dry-run"` // if true do not report inventory to Nextlinux }
func LoadConfigFromFile ¶
func LoadConfigFromFile(v *viper.Viper, cliOpts *CliOnlyOptions) (*AppConfig, error)
Load the Application Configuration from the Viper specifications
type CliOnlyOptions ¶
Configuration options that may only be specified on the command line
Click to show internal directories.
Click to hide internal directories.