Documentation ¶
Index ¶
- Variables
- func Exists(path string) (bool, error)
- type Environment
- type Machine
- func (m Machine) Environment() Environment
- func (m Machine) ExecSSH(user string, additionalArgs ...string) error
- func (m Machine) ID() string
- func (m Machine) IPAddress() string
- func (m Machine) Name() string
- func (m Machine) NewSSHSession(user string) (*ssh_util.Session, error)
- func (m Machine) Restart() error
- func (m Machine) Start() error
- func (m Machine) StartVNC(user string) error
- func (m Machine) State() string
- func (m Machine) Stop() error
- type MachineState
- type Platform
- type Provider
- type VM
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 StateTerminating = MachineState{"Terminating"}
View Source
var StateUnknown = MachineState{"Unknown"}
Functions ¶
Types ¶
type Environment ¶
type Machine ¶
type Machine struct { InstanceName string InstanceID string CurrentUpTime time.Duration PublicIPAddresses []string PrivateIPAddresses []string CurrentState MachineState Env Environment }
func (Machine) Environment ¶
func (m Machine) Environment() Environment
func (Machine) NewSSHSession ¶ added in v0.2.4
type MachineState ¶
type MachineState struct{ Name string }
type Platform ¶
type Platform interface { Environments(validNames ...string) []Environment Name() string Provider() Provider }
Click to show internal directories.
Click to hide internal directories.