config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 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 Config

type Config struct {
	Clusters      clusters.Config        `yaml:"clusters"`
	Prometheus    []prometheus.Config    `yaml:"prometheus"`
	Elasticsearch []elasticsearch.Config `yaml:"elasticsearch"`
	Jaeger        []jaeger.Config        `yaml:"jaeger"`
	Kiali         []kiali.Config         `yaml:"kiali"`
	Opsgenie      []opsgenie.Config      `yaml:"opsgenie"`
}

Config is the complete configuration for kobs.

func Load

func Load(file string) (*Config, error)

Load the configuration for kobs. Most of the configuration options are available as command-line flag, but we also need some more complex configuration options, which can be set via a config file in yaml format. The configuration file can contain environment variables in the following format: "${NAME_OF_THE_ENVIRONMENT_VARIABLE}".

Jump to

Keyboard shortcuts

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