Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct { Uid string `yaml:"uid"` Name string `yaml:"name"` Namespaces []SourceNamespace `yaml:"namespaces"` }
func (*ApplicationConfig) MandatoryParamsByNSAndConfigMap ¶
func (c *ApplicationConfig) MandatoryParamsByNSAndConfigMap(namespace string, configMap string) []string
type ClusterConfig ¶
type ClusterConfig struct { Uid string `yaml:"uid"` ClusterId string `yaml:"clusterId"` Server string `yaml:"server"` Token string `yaml:"token"` }
func (*ClusterConfig) ValidateClusterConfig ¶
func (c *ClusterConfig) ValidateClusterConfig() error
type Config ¶
func ReadConfigFromEnvVars ¶
func ReadConfigFromEnvVars() *Config
func ReadConfigFromFlags ¶
func ReadConfigFromFlags() *Config
func (*Config) ReadExporterConfig ¶
func (c *Config) ReadExporterConfig() *ExporterConfig
type ExporterConfig ¶
type ExporterConfig struct { Cluster ClusterConfig `yaml:"cluster"` Application ApplicationConfig `yaml:"application"` }
func (*ExporterConfig) InitializeForCLI ¶
func (e *ExporterConfig) InitializeForCLI()
func (*ExporterConfig) Validate ¶
func (e *ExporterConfig) Validate() error
type MandatoryParam ¶
type SourceNamespace ¶
type SourceNamespace struct { Name string `yaml:"name"` MandatoryParams []MandatoryParam `yaml:"mandatory-params"` }
Click to show internal directories.
Click to hide internal directories.