Documentation ¶
Index ¶
- func NewManager(providerAPIToken string) (core.VMManager, error)
- type Manager
- func (m *Manager) CreateVM(name string, image string, size string, region string, sshKey core.SSHKey) (core.VMInfo, error)
- func (m *Manager) DeleteVM(ID string) error
- func (m *Manager) FindAuthToken() string
- func (m *Manager) GetVMInfo(vmID string) (vmInfo core.VMInfo, err error)
- func (m *Manager) IsSSHKeyUploaded(desiredSSHKey core.SSHKey) (keyID string, err error)
- func (m *Manager) ListVMs() (vmInfo []core.VMInfo, err error)
- func (m *Manager) SelectClosestRegion() (closestRegion string, err error)
- func (m *Manager) UploadSSHKey(keyName string, sshKey core.SSHKey) (keyID string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct { APIToken string // contains filtered or unexported fields }
Manager controls access to AWS
func (*Manager) CreateVM ¶
func (m *Manager) CreateVM(name string, image string, size string, region string, sshKey core.SSHKey) (core.VMInfo, error)
CreateVM will create a new VM
func (*Manager) FindAuthToken ¶ added in v0.2.10
GetAuthToken will check common place for aws api key
func (*Manager) IsSSHKeyUploaded ¶
IsSSHKeyUploaded checks if ssh key already uploaded to DigitalOcean
func (*Manager) SelectClosestRegion ¶
SelectClosestRegion will check all DO regions to find the closest
Click to show internal directories.
Click to hide internal directories.