Versions in this module Expand all Collapse all v0 v0.2.0 Jun 3, 2015 v0.1.4 Jan 28, 2015 v0.1.3 Dec 31, 2014 v0.1.2 Dec 30, 2014 v0.1.1 Dec 30, 2014 Changes in this version + type Client struct + Server string + func NewClient(hostname string, email string, apiKey string) (*Client, error) + func (c *Client) GetProfile() (*Profile, error) + func (c *Client) GetRemoteAccessSession(id int) (RemoteAccessSession, error) + func (c *Client) GetTransactions() (Transactions, error) + func (c *Client) GetVirtualMachine(id int) (VirtualMachine, error) + func (c *Client) GetVirtualMachines() (VirtualMachines, error) + func (c *Client) VirtualMachineGetLatestTransaction(vmId int, statuses ...string) (Transaction, error) + func (c *Client) VirtualMachineGetTransactions(vmId int) (Transactions, error) + func (c *Client) VirtualMachineReboot(id int) error + func (c *Client) VirtualMachineShutdown(id int) error + func (c *Client) VirtualMachineStartup(id int) error + type IpAddress struct + Address string + Broadcast string + Gateway string + Netmask string + NetworkAddress string + type Profile struct + Email string + FirstName string + Id int + LastName string + Login string + type RemoteAccessSession struct + Port int + type Transaction struct + Action string + CreatedAt string + Dependent int + Id int + Parent int + ParentType string + StartedAt string + Status string + UpdatedAt string + User int + func (t *Transaction) IsValid() bool + func (t *Transaction) StatusColored() string + func (tx *Transaction) CreatedAtTime() (time.Time, error) + type Transactions []Transaction + type VirtualMachine struct + Booted bool + CpuShares int + Cpus int + HV int + Hostname string + Id int + IpAddressesRaw []map[string]IpAddress + Label string + Locked bool + Memory int + RootPassword string + Template string + User int + VncPassword string + func (vm *VirtualMachine) BootedString() string + func (vm *VirtualMachine) BootedStringColored() string + func (vm *VirtualMachine) GetIpAddress() IpAddress + func (vm *VirtualMachine) GetIpAddresses() ([]IpAddress, error) + func (vm *VirtualMachine) GetRemoteAccessSession() (*RemoteAccessSession, error) + func (vm *VirtualMachine) GetRunningTransaction() (Transaction, error) + func (vm *VirtualMachine) GetTransactions() (Transactions, error) + func (vm *VirtualMachine) Reboot() error + func (vm *VirtualMachine) Shutdown() error + func (vm *VirtualMachine) Startup() error + type VirtualMachines []VirtualMachine + func (vms VirtualMachines) AsList() list.List + func (vms VirtualMachines) Len() int + func (vms VirtualMachines) Less(i, j int) bool + func (vms VirtualMachines) Swap(i, j int)