Documentation ¶
Index ¶
- Constants
- func LinodeFromJSON(jsonData []byte) (compute.Provider, error)
- type Linode
- func (ln *Linode) ComputeService() compute.Service
- func (ln *Linode) CreateImage(imageTemplate *compute.Image) (*compute.Image, error)
- func (ln *Linode) CreateInstance(instance *compute.Instance) (*compute.Instance, error)
- func (ln *Linode) DeleteImage(imageID string) error
- func (ln *Linode) DeleteInstance(instanceID string) error
- func (ln *Linode) FindFlavor(flavor *compute.Flavor) (string, error)
- func (ln *Linode) FindImage(image *compute.Image) (string, error)
- func (ln *Linode) GetImage(imageID string) (*compute.Image, error)
- func (ln *Linode) GetInstance(instanceID string) (*compute.Instance, error)
- func (ln *Linode) ListFlavors() ([]*compute.Flavor, error)
- func (ln *Linode) ListImages() ([]*compute.Image, error)
- func (ln *Linode) ListInstances() ([]*compute.Instance, error)
- func (ln *Linode) RebootInstance(instanceID string) error
- func (ln *Linode) StartInstance(instanceID string) error
- func (ln *Linode) StopInstance(instanceID string) error
- type LinodeJSONConfig
Constants ¶
View Source
const DEFAULT_DATACENTER = "newark"
View Source
const DEFAULT_STORAGE = 10
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Linode ¶
type Linode struct {
// contains filtered or unexported fields
}
func MakeLinode ¶
func (*Linode) ComputeService ¶
func (*Linode) CreateImage ¶
func (*Linode) CreateInstance ¶
func (*Linode) DeleteImage ¶
func (*Linode) DeleteInstance ¶
func (*Linode) GetInstance ¶
func (*Linode) RebootInstance ¶
func (*Linode) StartInstance ¶
func (*Linode) StopInstance ¶
type LinodeJSONConfig ¶
type LinodeJSONConfig struct {
ApiKey string `json:"api_key"`
}
Click to show internal directories.
Click to hide internal directories.