Documentation ¶
Index ¶
- func RegisterClusterConfig(cmd *cobra.Command)
- func RegisterConfig(cmd *cobra.Command)
- func RegisterMetricProviderConfig(cmd *cobra.Command)
- func RegisterTLSConfig(cmd *cobra.Command)
- func RegisterTelemetryConfig(cmd *cobra.Command)
- type ClusterConfig
- type Config
- type MetricProviderConfig
- type MetricProviderPrometheusConfig
- type TLSConfig
- type TelemetryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterClusterConfig ¶ added in v0.2.0
func RegisterConfig ¶
func RegisterMetricProviderConfig ¶ added in v0.4.0
func RegisterTLSConfig ¶
func RegisterTelemetryConfig ¶
RegisterTelemetryConfig is used by a Cobra command to register the Telemetry CLI flags.
Types ¶
type ClusterConfig ¶ added in v0.2.0
func GetClusterConfig ¶ added in v0.2.0
func GetClusterConfig() ClusterConfig
func (*ClusterConfig) MarshalZerologObject ¶ added in v0.2.0
func (c *ClusterConfig) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject is the Zerolog marshaller which allow us to log the object.
type Config ¶
type Config struct { Bind string ConsulStorageBackendPath string Port uint16 APIPolicyEngine bool NomadMetaPolicyEngine bool StrictPolicyChecking bool InternalAutoScaler bool ConsulStorageBackend bool UI bool InternalAutoScalerEvalPeriod int InternalAutoScalerNumThreads int }
func (*Config) MarshalZerologObject ¶
type MetricProviderConfig ¶ added in v0.4.0
type MetricProviderConfig struct {
Prometheus *MetricProviderPrometheusConfig
}
func GetMetricProviderConfig ¶ added in v0.4.0
func GetMetricProviderConfig() *MetricProviderConfig
func (*MetricProviderConfig) MarshalZerologObject ¶ added in v0.4.0
func (mpc *MetricProviderConfig) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject is the Zerolog marshaller which allow us to log the object.
type MetricProviderPrometheusConfig ¶ added in v0.4.0
type MetricProviderPrometheusConfig struct {
Addr string
}
type TLSConfig ¶
func GetTLSConfig ¶
func GetTLSConfig() TLSConfig
func (*TLSConfig) MarshalZerologObject ¶
type TelemetryConfig ¶
TelemetryConfig is the server Telemetry configuration struct.
func GetTelemetryConfig ¶
func GetTelemetryConfig() TelemetryConfig
GetTelemetryConfig hydrates the telemetry config struct.
func (*TelemetryConfig) MarshalZerologObject ¶
func (c *TelemetryConfig) MarshalZerologObject(e *zerolog.Event)
MarshalZerologObject is the Zerolog marshaller which allow us to log the object.
Click to show internal directories.
Click to hide internal directories.