Documentation
¶
Index ¶
- func LoadClusterConfig() (armometadata.ClusterConfig, error)
- func LoadServiceURLs(filePath string) (schema.IBackendServices, error)
- type AuthenticationServerConfig
- type Backend
- type Config
- type HTTPEndpoint
- type InCluster
- type KeepAliveTaskConfig
- type PrometheusConfig
- type ReconciliationTaskConfig
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadClusterConfig ¶ added in v0.0.5
func LoadClusterConfig() (armometadata.ClusterConfig, error)
func LoadServiceURLs ¶ added in v0.0.5
func LoadServiceURLs(filePath string) (schema.IBackendServices, error)
Types ¶
type AuthenticationServerConfig ¶ added in v0.0.5
type Backend ¶
type Backend struct {
Port int `mapstructure:"port"`
AuthenticationServer *AuthenticationServerConfig `mapstructure:"authenticationServer"`
Subscription string `mapstructure:"subscription"`
PulsarConfig *pulsarconfig.PulsarConfig `mapstructure:"pulsarConfig"`
ProducerTopic pulsarconnector.TopicName `mapstructure:"producerTopic"`
ConsumerTopic pulsarconnector.TopicName `mapstructure:"consumerTopic"`
ConsumerWorkers int `mapstructure:"consumerWorkers"`
Prometheus *PrometheusConfig `mapstructure:"prometheusConfig"`
ReconciliationTask *ReconciliationTaskConfig `mapstructure:"reconciliationTaskConfig"`
KeepAliveTask *KeepAliveTaskConfig `mapstructure:"keepAliveTaskConfig"`
SkipAlertsFrom []string `mapstructure:"skipAlertsFrom"`
}
type Config ¶
type Config struct {
Backend Backend `mapstructure:"backend"`
InCluster InCluster `mapstructure:"inCluster"`
HTTPEndpoint HTTPEndpoint `mapstructure:"httpEndpoint"`
}
func LoadConfig ¶
LoadConfig reads configuration from file or environment variables.
type HTTPEndpoint ¶ added in v0.0.67
type HTTPEndpoint struct {
ServerPort string `mapstructure:"serverPort"`
Resources []Resource `mapstructure:"resources"`
}
func (*HTTPEndpoint) ValidateConfig ¶ added in v0.0.67
func (c *HTTPEndpoint) ValidateConfig() error
type InCluster ¶
type InCluster struct {
ServerUrl string `mapstructure:"serverUrl"`
Namespace string `mapstructure:"namespace"`
ClusterName string `mapstructure:"clusterName"`
ExcludeNamespaces []string `mapstructure:"excludeNamespaces"`
IncludeNamespaces []string `mapstructure:"includeNamespaces"`
Account string `mapstructure:"account"`
AccessKey string `mapstructure:"accessKey"`
Resources []Resource `mapstructure:"resources"`
}
func (*InCluster) ValidateConfig ¶ added in v0.0.5
type KeepAliveTaskConfig ¶ added in v0.0.64
type KeepAliveTaskConfig struct {
TaskIntervalSeconds int `mapstructure:"taskIntervalSeconds"`
}
type PrometheusConfig ¶ added in v0.0.38
type ReconciliationTaskConfig ¶ added in v0.0.47
type ReconciliationTaskConfig struct {
CronSchedule string `mapstructure:"cronSchedule"` // when this is set, taskIntervalSeconds is ignored
TaskIntervalSeconds int `mapstructure:"taskIntervalSeconds"`
IntervalFromConnectionSeconds int `mapstructure:"intervalFromConnectionSeconds"`
SendBatch bool `mapstructure:"sendBatch"` // if true, a single message will be sent for all connected clients
}
Click to show internal directories.
Click to hide internal directories.