Documentation ¶
Index ¶
- Constants
- func VultrFromJSON(jsonData []byte) (compute.Provider, error)
- type Vultr
- func (vt *Vultr) ComputeService() compute.Service
- func (vt *Vultr) CreateImage(imageTemplate *compute.Image) (*compute.Image, error)
- func (vt *Vultr) CreateInstance(instance *compute.Instance) (*compute.Instance, error)
- func (vt *Vultr) DeleteImage(imageID string) error
- func (vt *Vultr) DeleteInstance(instanceID string) error
- func (vt *Vultr) FindFlavor(flavor *compute.Flavor) (string, error)
- func (vt *Vultr) FindImage(image *compute.Image) (string, error)
- func (vt *Vultr) GetImage(imageID string) (*compute.Image, error)
- func (vt *Vultr) GetInstance(instanceID string) (*compute.Instance, error)
- func (vt *Vultr) GetVNC(instanceID string) (string, error)
- func (vt *Vultr) ImportPublicKey(key *compute.PublicKey) (*compute.PublicKey, error)
- func (vt *Vultr) ListFlavors() ([]*compute.Flavor, error)
- func (vt *Vultr) ListImages() ([]*compute.Image, error)
- func (vt *Vultr) ListInstances() ([]*compute.Instance, error)
- func (vt *Vultr) ListPublicKeys() ([]*compute.PublicKey, error)
- func (vt *Vultr) RebootInstance(instanceID string) error
- func (vt *Vultr) RemovePublicKey(keyID string) error
- func (vt *Vultr) StartInstance(instanceID string) error
- func (vt *Vultr) StopInstance(instanceID string) error
- type VultrJSONConfig
Constants ¶
View Source
const DEFAULT_NAME = "cloug"
View Source
const DEFAULT_REGION = "New Jersey"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Vultr ¶
type Vultr struct {
// contains filtered or unexported fields
}
func (*Vultr) ComputeService ¶
func (*Vultr) CreateImage ¶
func (*Vultr) CreateInstance ¶
func (*Vultr) DeleteImage ¶
func (*Vultr) DeleteInstance ¶
func (*Vultr) GetInstance ¶
func (*Vultr) ImportPublicKey ¶
func (*Vultr) RebootInstance ¶
func (*Vultr) RemovePublicKey ¶
func (*Vultr) StartInstance ¶
func (*Vultr) StopInstance ¶
type VultrJSONConfig ¶
type VultrJSONConfig struct {
ApiKey string `json:"api_key"`
}
Click to show internal directories.
Click to hide internal directories.