common

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Region        string
	Akid          string
	Secret        string
	DefaultSubnet string
}

Account is the configuration for an individual account

type Config

type Config struct {
	Accounts map[string]Account
	Token    string
}

Config is representation of the configuration data

func LoadConfig

func LoadConfig(filename string) (Config, error)

LoadConfig loads the JSON configuration from the specified filename and returns a Config struct

Jump to

Keyboard shortcuts

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