subd

package
v0.0.0-...-073edfd Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME = "vertice-prog"

	DefaultPath = "/var/lib/megam"
)
View Source
const (
	DefaultScylla = localhost

	// DefaultApi is the default megam gateway if one is not provided.
	DefaultApi = "http://localhost:9000/v2/"

	// DefaultNSQ is the default nsqd if its not provided.
	DefaultNSQd = localhost

	DefaultName = "vertice-dev"
	//default user
	DefaultUser = "megam"

	DefaultHome = "/var/lib/megam/"

	MEGAM_HOME = "MEGAM_HOME"

	DefaultSwarmMaster = localhost

	DefaultAccessKey = "dummy-access-key"

	DefaultScretKey = "dummy-scret-key"

	DefaultEndpoint = localhost

	DefaultOneUserId = "oneadmin"

	DefaultOnePassword = "dummy-password"

	DefaultOrg = "megam.io"

	DefaultDomain = "example.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dns

type Dns struct {
	Route53_access_key string `toml:route53_access`
	Route53_secret_key string `toml:route53_secret`
}

func DnsConfig

func DnsConfig() Dns

func (Dns) String

func (c Dns) String() string

type Docker

type Docker struct {
	Docker_swarm string `toml:swarm`
}

func DockerConfig

func DockerConfig() Docker

func (Docker) String

func (c Docker) String() string

type Hosts

type Hosts struct {
	Home   string `toml:"home"`
	Scylla string `toml:"scylla"`
	NSQd   string `toml:"nsqd"`
	Api    string `toml:"api"`
}

Config represents the meta configuration.

func HostConfig

func HostConfig() Hosts

func (Hosts) String

func (c Hosts) String() string

type One

type One struct {
	One_endpoint string `toml:one_endpoint`
	One_userid   string `toml:one_userid`
	One_password string `toml:one_password`
}

func OneConfig

func OneConfig() One

func (One) String

func (c One) String() string

type Organise

type Organise struct {
	Org    string `toml:org`
	Domain string `toml:domain`
}

func OrgConfig

func OrgConfig() Organise

func (Organise) String

func (c Organise) String() string

type Settings

type Settings struct {
	Name     string
	Hosts    `toml:"common"`
	One      `toml:one`
	Dns      `toml:dns`
	Docker   `toml:docker`
	Organise `toml:org`
}

func NewConfig

func NewConfig() *Settings

NewConfig returns an instance of Config with reasonable defaults.

func ParseConfig

func ParseConfig() (*Settings, error)

func (Settings) String

func (c Settings) String() string

func (*Settings) Validate

func (c *Settings) Validate() error

Validate returns an error if the config is invalid.

Jump to

Keyboard shortcuts

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