linode

package
v0.0.0-...-15aa78f Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_DATACENTER = "newark"
View Source
const DEFAULT_STORAGE = 10

Variables

This section is empty.

Functions

func LinodeFromJSON

func LinodeFromJSON(jsonData []byte) (compute.Provider, error)

Types

type Linode

type Linode struct {
	// contains filtered or unexported fields
}

func MakeLinode

func MakeLinode(apiKey string) *Linode

func (*Linode) ComputeService

func (ln *Linode) ComputeService() compute.Service

func (*Linode) CreateImage

func (ln *Linode) CreateImage(imageTemplate *compute.Image) (*compute.Image, error)

func (*Linode) CreateInstance

func (ln *Linode) CreateInstance(instance *compute.Instance) (*compute.Instance, error)

func (*Linode) DeleteImage

func (ln *Linode) DeleteImage(imageID string) error

func (*Linode) DeleteInstance

func (ln *Linode) DeleteInstance(instanceID string) error

func (*Linode) FindFlavor

func (ln *Linode) FindFlavor(flavor *compute.Flavor) (string, error)

func (*Linode) FindImage

func (ln *Linode) FindImage(image *compute.Image) (string, error)

func (*Linode) GetImage

func (ln *Linode) GetImage(imageID string) (*compute.Image, error)

func (*Linode) GetInstance

func (ln *Linode) GetInstance(instanceID string) (*compute.Instance, error)

func (*Linode) ListFlavors

func (ln *Linode) ListFlavors() ([]*compute.Flavor, error)

func (*Linode) ListImages

func (ln *Linode) ListImages() ([]*compute.Image, error)

func (*Linode) ListInstances

func (ln *Linode) ListInstances() ([]*compute.Instance, error)

func (*Linode) RebootInstance

func (ln *Linode) RebootInstance(instanceID string) error

func (*Linode) StartInstance

func (ln *Linode) StartInstance(instanceID string) error

func (*Linode) StopInstance

func (ln *Linode) StopInstance(instanceID string) error

type LinodeJSONConfig

type LinodeJSONConfig struct {
	ApiKey string `json:"api_key"`
}

Jump to

Keyboard shortcuts

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