Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultRegion ¶
DefaultRegion populates `m.Region` for the provided db.Machine if one isn't specified. This is intended to allow users to omit the cloud provider region when they don't particularly care where a system is placed.
Types ¶
type Machine ¶
type Machine struct { ID string PublicIP string PrivateIP string Size string DiskSize int SSHKeys []string Provider db.Provider Region string }
Machine represents an instance of a machine booted by a Provider.
type Provider ¶
type Provider interface { Connect(namespace string) error List() ([]Machine, error) Boot([]Machine) error Stop([]Machine) error SetACLs(acls []string) error ChooseSize(ram stitch.Range, cpu stitch.Range, maxPrice float64) string }
Provider defines an interface for interacting with cloud providers.
Click to show internal directories.
Click to hide internal directories.