proxmox

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

Documentation

Index

Constants

View Source
const DEFAULT_DISK = 32
View Source
const DEFAULT_MEMORY = 512

Variables

This section is empty.

Functions

func ProxmoxFromJSON

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

Types

type Proxmox

type Proxmox struct {
	Client *api.API
}

func MakeProxmox

func MakeProxmox(baseURL string, username string, password string) *Proxmox

func (*Proxmox) ComputeService

func (pm *Proxmox) ComputeService() compute.Service

func (*Proxmox) CreateInstance

func (pm *Proxmox) CreateInstance(instance *compute.Instance) (*compute.Instance, error)

func (*Proxmox) DeleteInstance

func (pm *Proxmox) DeleteInstance(instanceID string) error

func (*Proxmox) GetInstance

func (pm *Proxmox) GetInstance(instanceID string) (*compute.Instance, error)

func (*Proxmox) ListInstances

func (pm *Proxmox) ListInstances() ([]*compute.Instance, error)

func (*Proxmox) RebootInstance

func (pm *Proxmox) RebootInstance(instanceID string) error

func (*Proxmox) StartInstance

func (pm *Proxmox) StartInstance(instanceID string) error

func (*Proxmox) StopInstance

func (pm *Proxmox) StopInstance(instanceID string) error

type ProxmoxJSONConfig

type ProxmoxJSONConfig struct {
	URL      string `json:"url"`
	Username string `json:"username"`
	Password string `json:"password"`
	Insecure bool   `json:"insecure"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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