vultr

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: 7 Imported by: 1

Documentation

Index

Constants

View Source
const DEFAULT_NAME = "cloug"
View Source
const DEFAULT_REGION = "New Jersey"

Variables

This section is empty.

Functions

func VultrFromJSON

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

Types

type Vultr

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

func (*Vultr) ComputeService

func (vt *Vultr) ComputeService() compute.Service

func (*Vultr) CreateImage

func (vt *Vultr) CreateImage(imageTemplate *compute.Image) (*compute.Image, error)

func (*Vultr) CreateInstance

func (vt *Vultr) CreateInstance(instance *compute.Instance) (*compute.Instance, error)

func (*Vultr) DeleteImage

func (vt *Vultr) DeleteImage(imageID string) error

func (*Vultr) DeleteInstance

func (vt *Vultr) DeleteInstance(instanceID string) error

func (*Vultr) FindFlavor

func (vt *Vultr) FindFlavor(flavor *compute.Flavor) (string, error)

func (*Vultr) FindImage

func (vt *Vultr) FindImage(image *compute.Image) (string, error)

func (*Vultr) GetImage

func (vt *Vultr) GetImage(imageID string) (*compute.Image, error)

func (*Vultr) GetInstance

func (vt *Vultr) GetInstance(instanceID string) (*compute.Instance, error)

func (*Vultr) GetVNC

func (vt *Vultr) GetVNC(instanceID string) (string, error)

func (*Vultr) ImportPublicKey

func (vt *Vultr) ImportPublicKey(key *compute.PublicKey) (*compute.PublicKey, error)

func (*Vultr) ListFlavors

func (vt *Vultr) ListFlavors() ([]*compute.Flavor, error)

func (*Vultr) ListImages

func (vt *Vultr) ListImages() ([]*compute.Image, error)

func (*Vultr) ListInstances

func (vt *Vultr) ListInstances() ([]*compute.Instance, error)

func (*Vultr) ListPublicKeys

func (vt *Vultr) ListPublicKeys() ([]*compute.PublicKey, error)

func (*Vultr) RebootInstance

func (vt *Vultr) RebootInstance(instanceID string) error

func (*Vultr) RemovePublicKey

func (vt *Vultr) RemovePublicKey(keyID string) error

func (*Vultr) StartInstance

func (vt *Vultr) StartInstance(instanceID string) error

func (*Vultr) StopInstance

func (vt *Vultr) StopInstance(instanceID string) error

type VultrJSONConfig

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

Jump to

Keyboard shortcuts

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