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"`
|
2022-06-16 23:53:03 +02:00
|
|
|
// HideURL whether to ensure the URL is not displayed in the results. Useful if the URL contains a token.
|
|
|
|
HideURL bool `yaml:"hide-url"`
|
2021-09-15 01:34:46 +02:00
|
|
|
// 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,
|
2022-06-16 23:53:03 +02:00
|
|
|
HideURL: false,
|
2021-09-15 01:34:46 +02:00
|
|
|
DontResolveFailedConditions: false,
|
2021-09-03 04:26:08 +02:00
|
|
|
}
|
|
|
|
}
|