config

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2017 License: MPL-2.0 Imports: 4 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 {
	*Secrets
	ClusterCategory            string `yaml:"cluster_category"`
	ClusterName                string `yaml:"cluster_name"`
	CollectorDescription       string `yaml:"collector_description"`
	CollectorEscalationChainID int32  `yaml:"collector_escalation_chain_id"`
	PreferredCollector         int32
	Debug                      bool `yaml:"debug"`
	DeleteDevices              bool `yaml:"delete_devices"`
	DisableAlerting            bool `yaml:"disable_alerting"`
}

Config represents the application's configuration file.

func GetConfig

func GetConfig() (*Config, error)

GetConfig returns the application configuration specified by the config file.

type Secrets

type Secrets struct {
	Account            string `envconfig:"ACCOUNT"`
	ID                 string `envconfig:"ACCESS_ID"`
	Key                string `envconfig:"ACCESS_KEY"`
	EtcdDiscoveryToken string `envconfig:"ETCD_DISCOVERY_TOKEN"`
}

Secrets represents the application's sensitive configuration file.

Jump to

Keyboard shortcuts

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