config

package
v0.0.0-...-8e74efa Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDirectory

func GetConfigDirectory() (string, error)

func GetConfigPath

func GetConfigPath() (string, error)

func GetDefaultConfigName

func GetDefaultConfigName() string

func GetDefaultDirectory

func GetDefaultDirectory() string

func SaveConfig

func SaveConfig(path string, config *Config) error

Types

type Authentication

type Authentication struct {
	APIKey string `yaml:"apikey"`
}

type Config

type Config struct {
	Authentication Authentication `yaml:"authentication"`
	Defaults       Defaults       `yaml:"defaults"`
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

type Defaults

type Defaults struct {
	Region            string `yaml:"region"`
	Image             string `yaml:"image"`
	Size              string `yaml:"size"`
	Key               string `yaml:"key"`
	Backups           bool   `yaml:"backups"`
	IPv6              bool   `yaml:"ipv6"`
	PrivateNetworking bool   `yaml:"private_networking"`
}

Jump to

Keyboard shortcuts

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