config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 5 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"`
	Plugins  plugins.Config  `yaml:"plugins"`
}

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