config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: GPL-3.0 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 {
	AdminToken       string           `yaml:"adminToken"`
	Kubernetes       KubernetesConfig `yaml:"kubernetes"`
	Redis            RedisConfig      `yaml:"redis"`
	LogLevel         string           `yaml:"logLevel"`
	InstructionsPath string           `yaml:"instructionsPath"`
}

func Get

func Get() (*Config, <-chan Config)

type KubernetesConfig

type KubernetesConfig struct {
	DevMode bool `yaml:"devMode"`
	// this must be set if dev mode is set to true
	Kubeconfig string `yaml:"kubeconfig"`
	ApiURI     string `yaml:"apiUri"`
	ApiCA      string `yaml:"apiCa"`
}

func GetKubernetesConfig

func GetKubernetesConfig() (KubernetesConfig, <-chan KubernetesConfig)

type RedisConfig

type RedisConfig struct {
	Address   string `yaml:"address"`
	IsCluster bool   `yaml:"isCluster"`
}

func GetRedisConfig

func GetRedisConfig() RedisConfig

Jump to

Keyboard shortcuts

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