Documentation
¶
Index ¶
Constants ¶
View Source
const MinTelemetryInterval time.Duration = 2 * time.Minute
Variables ¶
View Source
var ( DefaultTelemetryInterval = 5 * time.Minute ErrorTelemetryIntervalTooSmall = fmt.Errorf("telemetryInterval smaller than %v is not allowed", MinTelemetryInterval) )
Functions ¶
This section is empty.
Types ¶
type OperatorConfig ¶
type OperatorConfig struct {
config.CaptureConfig `mapstructure:",squash"`
InstallCRDs bool `yaml:"installCRDs"`
EnableTelemetry bool `yaml:"enableTelemetry"`
LogLevel string `yaml:"logLevel"`
// EnableRetinaEndpoint indicates whether to enable RetinaEndpoint
EnableRetinaEndpoint bool `yaml:"enableRetinaEndpoint"`
RemoteContext bool `yaml:"remoteContext"`
TelemetryInterval time.Duration `yaml:"telemetryInterval"`
}
func GetConfig ¶ added in v0.0.13
func GetConfig(cfgFileName string) (*OperatorConfig, error)
Click to show internal directories.
Click to hide internal directories.