Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TickerTime: time to be set on hourly basis TickerTime int // Ticker holds a channel that delivers “ticks” of a clock at intervals Ticker *time.Ticker )
Functions ¶
func SetConfiguration ¶
func SetConfiguration() error
SetConfiguration will extract the config data from file
func TrackConfigFileChanges ¶
func TrackConfigFileChanges(eventChan chan<- interface{}, errChan chan<- error)
TrackConfigFileChanges monitors the config changes using fsnotfiy
func TrackConfigListener ¶
func TrackConfigListener(errChan chan error)
TrackConfigListener listes to the chanel on the config file changes
Types ¶
type ConfigModel ¶
type ConfigModel struct { Reconciliation string `yaml:"reconciliation"` ReconcileInterval string `yaml:"reconcileInterval"` SecretName string `yaml:"secretName"` MetricPort string `yaml:"metricsBindPort"` HealthPort string `yaml:"healthProbeBindPort"` EventClientPort string `yaml:"eventClientPort"` LogLevel log.Level `yaml:"logLevel"` LogFormat l.LogFormat `yaml:"logFormat"` KubeConfigPath string `yaml:"kubeConfigPath"` EventSubReconciliation string `yaml:"eventSubReconciliation"` Namespace string `yaml:"namespace"` OperatorEventSubscriptionMeesageIds []string `yaml:"operatorEventSubsciptionMessageIds"` OperatorEventSubscriptionEventTypes []string `yaml:"operatorEventSubscriptionEventTypes"` OperatorEventSubscriptionResourceTypes []string `yaml:" operatorEventSubsciptionResourceTypes"` }
ConfigModel contains config values (Mandatory values)
var Data ConfigModel
Data is a global variable to store the configmap
Click to show internal directories.
Click to hide internal directories.