config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEnv

func AddEnv()

func EditConfig

func EditConfig()

func ListEnvs

func ListEnvs()

func SaveConfig

func SaveConfig(config Config)

Types

type AlertConfig

type AlertConfig struct {
	Env      string                `yaml:"env"`
	Name     string                `yaml:"name"`
	Selector common.QuerySelectors `yaml:"selector"`
	Service  AlertServiceConfig    `yaml:"service"`
}

type AlertServiceConfig

type AlertServiceConfig map[string]string

type Config

type Config struct {
	DefaultEnv   string            `yaml:"default"`
	Environments map[string]EnvMap `yaml:"env"`
	Alerts       []AlertConfig     `yaml:"alerts"`
}

func LoadConfig

func LoadConfig() Config

func NewConfig

func NewConfig() Config

type EnvMap

type EnvMap map[string]string

type RuntimeConfig

type RuntimeConfig struct {
	ActiveEnv string
	DataDir   string
	Env       EnvMap
	Config    Config
}

func BuildConfig

func BuildConfig() RuntimeConfig

Jump to

Keyboard shortcuts

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