common

package
v0.0.0-...-45df14b Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Choice

func Choice(ui cli.Ui, question string, options []string) (int, error)

func HumanizeRate

func HumanizeRate(size int64, d time.Duration) string

func YesNoChoice

func YesNoChoice(ui cli.Ui, question string) (bool, error)

Types

type AwsCreds

type AwsCreds struct {
	Region    string
	AccessKey string
	SecretKey string
}

type Conf

type Conf struct {
	SharedSecret  string
	Encrypt       string
	Notify        string
	Storage       string
	StorageBucket string
	OutputDir     *string
	Aws           *AwsCreds
	Rackspace     *RackspaceCreds
	PeerDist      *PeerDist
}

func ConfFromFile

func ConfFromFile(file string) (*Conf, error)

func NewConf

func NewConf() *Conf

func (*Conf) ToString

func (c *Conf) ToString() (string, error)

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

type PeerDist

type PeerDist struct {
	Region     string
	ListenAddr string
	GossipAddr string
}

type RackspaceCreds

type RackspaceCreds struct {
	Region   string
	Username string
	ApiKey   string
}

Jump to

Keyboard shortcuts

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