config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateConfigFromFile

func UpdateConfigFromFile(conf *Config, f io.Reader) error

func UpdateFlagsFromConfig

func UpdateFlagsFromConfig(conf *Config)

Types

type Config

type Config struct {
	BootId      string   `toml:"bootid"`
	EtcdServers []string `toml:"etcd_servers"`
	PublicIP    string   `toml:"public_ip"`
	Verbosity   int      `toml:"verbosity"`
	RawMetadata string   `toml:"metadata"`
	UnitPrefix  string   `toml:"unit_prefix"`
	AgentTTL    string   `toml:"agent_ttl"`
}

func NewConfig

func NewConfig() *Config

func (*Config) Metadata

func (self *Config) Metadata() map[string]string

Jump to

Keyboard shortcuts

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