config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2015 License: MIT Imports: 1 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 {
	Provider         string              `toml:"provider"`
	PrivateKeyFile   string              `toml:"ssh_private_key"`
	PublicKeyFile    string              `toml:"ssh_public_key"`
	SelfDestructFile string              `toml:"self_destruct"`
	Sleep            int                 `toml:"sleeptime"`
	Providers        map[string]Provider `toml:"providers"`
	Options          Options             `toml:"options"`
}

func LoadConfiguration

func LoadConfiguration(filename string) (config *Config, err error)

type Options

type Options struct {
	Uptime      int        `toml:"max_uptime"`
	Autoconnect bool       `toml:"vpn_autoconnect"`
	ConnectCmd  [][]string `toml:"autoconnect_cmd"`
}

type Provider

type Provider struct {
	ApiKey string `toml:"api_key"`
	Region string `toml:"region"`
	Size   string `toml:"size"`
	OS     string `toml:"os"`
}

Jump to

Keyboard shortcuts

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