lunanode

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: 2

Documentation

Index

Constants

View Source
const DEFAULT_NAME = "cloug"
View Source
const DEFAULT_REGION = "toronto"

Variables

This section is empty.

Functions

func LunaNodeFromJSON

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

Types

type LunaNode

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

func MakeLunaNode

func MakeLunaNode(apiId string, apiKey string) (*LunaNode, error)

func (*LunaNode) ComputeService

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

func (*LunaNode) CreateImage

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

func (*LunaNode) CreateInstance

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

func (*LunaNode) DeleteImage

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

func (*LunaNode) DeleteInstance

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

func (*LunaNode) FindFlavor

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

func (*LunaNode) FindImage

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

func (*LunaNode) GetImage

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

func (*LunaNode) GetInstance

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

func (*LunaNode) GetVNC

func (ln *LunaNode) GetVNC(instanceID string) (string, error)

func (*LunaNode) ListFlavors

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

func (*LunaNode) ListImages

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

func (*LunaNode) ListInstances

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

func (*LunaNode) RebootInstance

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

func (*LunaNode) ReimageInstance

func (ln *LunaNode) ReimageInstance(instanceID string, image *compute.Image) error

func (*LunaNode) StartInstance

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

func (*LunaNode) StopInstance

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

type LunaNodeJSONConfig

type LunaNodeJSONConfig struct {
	ApiID  string `json:"api_id"`
	ApiKey string `json:"api_key"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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