provider

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	GetProviderName() string
	GetConfig() *config.Config

	// ssh-keys
	GetInstalledSshKeys() ([]SshKey, error)
	InstallNewSshKey(name, key string) (string, error)
	UpdateSshKey(id, name, key string) (string, error)

	// machines
	GetAllVMs() ([]VM, error)
	CreateVM(name, os, size, region, sshkey string) (string, error)
	StartVM(id string) error
	DestroyVM(id string) error

	// for request rate limiting
	Sleep()
}

type SshKey

type SshKey struct {
	Id   string
	Name string
	Key  string
}

type VM

type VM struct {
	Id     string
	Name   string
	OS     string
	IP     string
	Region string
	Status string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL