Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StateRunning = MachineState{"Running"}
View Source
var StateSleeping = MachineState{"Sleeping"}
View Source
var StateStarting = MachineState{"Starting"}
View Source
var StateStopped = MachineState{"Stopped"}
View Source
var StateStopping = MachineState{"Stopping"}
View Source
var StateTerminated = MachineState{"Terminated"}
View Source
var StateTerminating = MachineState{"Terminating"}
View Source
var StateUnknown = MachineState{"Unknown"}
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Image ¶ added in v0.3.0
type Image interface { ID() string Name() string CreatedAt() string Environment() Environment Profile() Profile Provider() Provider Launch(imageLaunchOptions ImageLaunchOptions) error Destroy() error }
type ImageBuild ¶ added in v0.3.0
type ImageLaunchOptions ¶ added in v0.4.0
type ImageLaunchOptions struct {
Name string
}
type MachineLaunchOptions ¶ added in v0.3.0
type MachineState ¶
type MachineState struct {
Name string `json:"name"`
}
type Profile ¶ added in v0.3.0
type Profile interface { Environments() []Environment Name() string Provider() Provider SetConfig(config common.ProfileConfig) GetConfig() common.ProfileConfig ShouldIncludeEnvironment(envName string) bool }
type Project ¶ added in v0.4.0
type Project interface { Name() string TerraformApply() error AddMachine(machine *ProjectMachine, noApply bool) error }
type ProjectConfig ¶ added in v0.4.0
type ProjectConfig struct {
Machines []*ProjectMachine `yaml:"machines"`
}
type ProjectMachine ¶ added in v0.4.0
type ProjectMachine struct { Name string `yaml:"name"` Image string `yaml:"image,omitempty"` Type string `yaml:"type,omitempty"` Profile string `yaml:"profile,omitempty"` Purpose string `yaml:"purpose,omitempty"` VolumeSize int `yaml:"volume_size,omitempty"` Provider string `yaml:"provider,omitempty"` }
type VM ¶
type VM interface { Name() string ID() string IPAddress() string PrivateIPAddress() string UpTime() time.Duration State() string Type() string Environment() Environment Profile() Profile Provider() Provider Destroy() error Start() error Stop() error Restart() error ExecSSH(string, bool, ...string) error StartVNC(user string, privateIP bool, killVNC bool) error Cmd(string, bool, ...string) (string, error) NewSSHSession(string, bool) (*ssh_util.Session, error) }
Click to show internal directories.
Click to hide internal directories.