2021-09-03 04:26:08 +02:00
|
|
|
package ui
|
|
|
|
|
2021-10-23 22:47:12 +02:00
|
|
|
// Config is the UI configuration for core.Endpoint
|
2021-09-03 04:26:08 +02:00
|
|
|
type Config struct {
|
2021-09-15 01:34:46 +02:00
|
|
|
// HideHostname whether to hide the hostname in the Result
|
|
|
|
HideHostname bool `yaml:"hide-hostname"`
|
|
|
|
// DontResolveFailedConditions whether to resolve failed conditions in the Result for display in the UI
|
|
|
|
DontResolveFailedConditions bool `yaml:"dont-resolve-failed-conditions"`
|
2021-09-03 04:26:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// GetDefaultConfig retrieves the default UI configuration
|
|
|
|
func GetDefaultConfig() *Config {
|
|
|
|
return &Config{
|
2021-09-15 01:34:46 +02:00
|
|
|
HideHostname: false,
|
|
|
|
DontResolveFailedConditions: false,
|
2021-09-03 04:26:08 +02:00
|
|
|
}
|
|
|
|
}
|