Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotFoundError = errgo.New("not found") ValidationError = errgo.New("validation") )
Functions ¶
func Decode ¶
func Decode(obj ast.Node, excludeKeys []string, defaultValues map[string]interface{}, data interface{}) error
Decode from object to data structure using `mapstructure`
func ParseStringList ¶
func ParseStringList(o *ast.ObjectList, context string) ([]string, error)
Types ¶
type Cluster ¶
type Cluster struct { // Name within the domain e.g. alpha-c32 Stack string `mapstructure:"stack"` // Domain name e.g. pulcy.com Domain string `mapstructure:"domain"` // SSH tunnel needed to reach the cluster (optional) Tunnel string `mapstructure:"tunnel,omitempty"` // Size of the cluster (in instances==machines) InstanceCount int `mapstructure:"instance-count,omitempty"` // Default network type Network string `mapstructure:"network,omitempty"` // Quark options QuarkOptions QuarkOptions }
Cluster contains all variables describing a cluster (deployment target)
func ParseClusterFromFile ¶
ParseClusterFromFile reads a cluster from file
type Profile ¶
Profile contains options that are specific to one profile. settings in a profile overwrite settings in QuarkOptions.
type QuarkOptions ¶
QuarkOptions contains options that are specific to quark.
Click to show internal directories.
Click to hide internal directories.