Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Environment ¶
type Environment struct { Group []Group `yaml:"group"` Label string `yaml:"label"` Name string `yaml:"name"` State string }
Environment stores details of an environment.
type Environments ¶
type Environments struct { Envs []Environment `yaml:"environment"` Provider string `yaml:"provider"` Vars Variable `yaml:"variable"` // contains filtered or unexported fields }
Environments stores all environments, provided Options, and related information.
func NewEnvironments ¶
func NewEnvironments(args []string) (*Environments, error)
NewEnvironments return a Environments struct.
type Group ¶
type Group struct { Name string `yaml:"name"` Project string `yaml:"project"` Resource Resource `yaml:"resource"` Zone string `yaml:"zone"` }
Group stores details of a group.
type Instance ¶
type Instance struct { Name string `yaml:"name"` Record Record `yaml:"record"` Script EnvScript `yaml:"script"` }
Instance stores details of an instance in Virtual Machine resource.
type Record ¶
type Record struct { Domain string `yaml:"domain"` ExternalIP bool `yaml:"external_ip"` IP []string `yaml:"ip"` Type string `yaml:"type"` Zone string `yaml:"zone"` }
Record stores details to create a DNS record.
type Resource ¶
type Resource struct {
VM VM `yaml:"vm"`
}
Resource stores declared resources in a group.
type Variable ¶
type Variable map[string]interface{}
Variable stores variables declared in environment file.
type VirtualMachine ¶
VirtualMachine holds configuration and methods to manage virtual machine instances.
func NewVirtualMachine ¶
func NewVirtualMachine(args []string) (*VirtualMachine, error)
NewVirtualMachine returns a VirtualMachine struct.
Click to show internal directories.
Click to hide internal directories.