config

package
v0.0.0-...-d7aa82b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 9 Imported by: 0

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

type Config struct {
	RootOutputFolder string
	Debug            bool
	// contains filtered or unexported fields
}

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 MandatoryParam struct {
	ConfigMap string   `yaml:"configMap"`
	Params    []string `yaml:"params"`
}

type SourceNamespace

type SourceNamespace struct {
	Name            string           `yaml:"name"`
	MandatoryParams []MandatoryParam `yaml:"mandatory-params"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL