ax: github.com/egnyte/ax/pkg/config Index | Files

package config

import "github.com/egnyte/ax/pkg/config"

Index

Package Files

cloudwatch.go colors.go config.go kibana.go stackdriver.go

func AddEnv Uses

func AddEnv()

func ColorToTermColor Uses

func ColorToTermColor(colorDef colorDef) *color.Color

func EditConfig Uses

func EditConfig()

func ListEnvs Uses

func ListEnvs()

func SaveConfig Uses

func SaveConfig(config Config)

type AlertConfig Uses

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

type AlertServiceConfig Uses

type AlertServiceConfig map[string]string

type ColorConfig Uses

type ColorConfig struct {
    Timestamp      colorDef
    AttributeKey   colorDef
    AttributeValue colorDef
    Message        colorDef
}

type Config Uses

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

func LoadConfig Uses

func LoadConfig() Config

func NewConfig Uses

func NewConfig() Config

type EnvMap Uses

type EnvMap map[string]string

type RuntimeConfig Uses

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

func BuildConfig Uses

func BuildConfig() RuntimeConfig

Package config imports 20 packages (graph) and is imported by 2 packages. Updated 2018-06-07. Refresh now. Tools for package owners.