Documentation ¶
Index ¶
- type APIResult
- type Host
- type Network
- func (self *Network) Destroy() (err error)
- func (self *Network) GetAssignedIPs() (ipMap map[string]string, err error)
- func (self *Network) GetOtherConfig() (otherConfig map[string]string, err error)
- func (self *Network) IsHostInternalManagementNetwork() (isHostInternalManagementNetwork bool, err error)
- type PIF
- type Pool
- type SR
- type Task
- type TaskStatusType
- type TransferRecord
- type VBD
- type VDI
- func (self *VDI) Destroy() (err error)
- func (self *VDI) Expose(format string) (url string, err error)
- func (self *VDI) Forget() (err error)
- func (self *VDI) GetUuid() (vdi_uuid string, err error)
- func (self *VDI) GetVBDs() (vbds []VBD, err error)
- func (self *VDI) GetVirtualSize() (virtual_size string, err error)
- func (self *VDI) SetNameLabel(name_label string) (err error)
- func (self *VDI) SetReadOnly(value bool) (err error)
- func (self *VDI) SetSharable(value bool) (err error)
- func (self *VDI) Unexpose() (err error)
- type VDIType
- type VIF
- type VM
- func (self *VM) CleanReboot() (err error)
- func (self *VM) CleanShutdown() (err error)
- func (self *VM) Clone(name_label string) (new_instance *VM, err error)
- func (self *VM) ConnectNetwork(network *Network, device string) (vif *VIF, err error)
- func (self *VM) ConnectVdi(vdi *VDI, vdiType VDIType, userdevice string) (err error)
- func (self *VM) Copy(new_name string, targetSr *SR) (new_instance *VM, err error)
- func (self *VM) Destroy() (err error)
- func (self *VM) DisconnectVdi(vdi *VDI) error
- func (self *VM) GetAllowedVBDDevices() (devices []string, err error)
- func (self *VM) GetAllowedVIFDevices() (devices []string, err error)
- func (self *VM) GetDisks() (vdis []*VDI, err error)
- func (self *VM) GetDomainId() (domid string, err error)
- func (self *VM) GetGuestMetrics() (metrics map[string]interface{}, err error)
- func (self *VM) GetGuestMetricsRef() (ref string, err error)
- func (self *VM) GetHVMBootPolicy() (bootOrder string, err error)
- func (self *VM) GetNameLabel() (name string, err error)
- func (self *VM) GetOtherConfig() (other_config map[string]string, err error)
- func (self *VM) GetPowerState() (state string, err error)
- func (self *VM) GetResidentOn() (host *Host, err error)
- func (self *VM) GetSnapshots() (vms []*VM, err error)
- func (self *VM) GetUuid() (uuid string, err error)
- func (self *VM) GetVBDs() (vbds []VBD, err error)
- func (self *VM) GetVIFs() (vifs []VIF, err error)
- func (self *VM) GetVMGuestMetrics() (vm_guest_metrics *VM_Guest_Metrics, err error)
- func (self *VM) HardReboot() (err error)
- func (self *VM) HardShutdown() (err error)
- func (self *VM) Provision() (err error)
- func (self *VM) Resume(paused, force bool) (err error)
- func (self *VM) Revert(snapshot *VM) (err error)
- func (self *VM) SetDescription(description string) (err error)
- func (self *VM) SetHVMBoot(policy, bootOrder string) (err error)
- func (self *VM) SetHaAlwaysRun(ha_always_run bool) (err error)
- func (self *VM) SetIsATemplate(is_a_template bool) (err error)
- func (self *VM) SetNameLabel(name_label string) (err error)
- func (self *VM) SetOtherConfig(other_config map[string]string) (err error)
- func (self *VM) SetPVBootloader(pv_bootloader, pv_args string) (err error)
- func (self *VM) SetPlatform(params map[string]string) (err error)
- func (self *VM) SetStaticMemoryRange(min, max uint64) (err error)
- func (self *VM) SetSuspendSR(vdi *VDI) (err error)
- func (self *VM) SetVCPUsAtStartup(vcpus uint) (err error)
- func (self *VM) SetVCPUsMax(vcpus uint) (err error)
- func (self *VM) SetVCpuAtStartup(vcpus uint) (err error)
- func (self *VM) SetVCpuMax(vcpus uint) (err error)
- func (self *VM) Snapshot(label string) (snapshot *VM, err error)
- func (self *VM) Start(paused, force bool) (err error)
- func (self *VM) StartOn(host *Host, paused, force bool) (err error)
- func (self *VM) Unpause() (err error)
- type VM_Guest_Metrics
- type XenAPIClient
- func (client *XenAPIClient) APICall(result *APIResult, method string, params ...interface{}) (err error)
- func (client *XenAPIClient) CreateNetwork(name_label string, name_description string, bridge string) (network *Network, err error)
- func (client *XenAPIClient) CreateTask() (task *Task, err error)
- func (client *XenAPIClient) GetDefaultSR() (sr *SR, err error)
- func (client *XenAPIClient) GetHostByNameLabel(name_label string) (hosts []*Host, err error)
- func (client *XenAPIClient) GetHostByUuid(host_uuid string) (host *Host, err error)
- func (client *XenAPIClient) GetHosts() (hosts []*Host, err error)
- func (client *XenAPIClient) GetNetworkByNameLabel(name_label string) (networks []*Network, err error)
- func (client *XenAPIClient) GetNetworkByUuid(network_uuid string) (network *Network, err error)
- func (client *XenAPIClient) GetNetworks() (networks []*Network, err error)
- func (client *XenAPIClient) GetPIFs() (pifs []*PIF, err error)
- func (client *XenAPIClient) GetPools() (pools []*Pool, err error)
- func (client *XenAPIClient) GetSRByNameLabel(name_label string) (srs []*SR, err error)
- func (client *XenAPIClient) GetSRByUuid(sr_uuid string) (sr *SR, err error)
- func (client *XenAPIClient) GetVMAll() (vms []*VM, err error)
- func (client *XenAPIClient) GetVMByNameLabel(name_label string) (vms []*VM, err error)
- func (client *XenAPIClient) GetVMByUuid(vm_uuid string) (vm *VM, err error)
- func (client *XenAPIClient) GetVdiByNameLabel(name_label string) (vdis []*VDI, err error)
- func (client *XenAPIClient) GetVdiByUuid(vdi_uuid string) (vdi *VDI, err error)
- func (client *XenAPIClient) Login() (err error)
- func (c *XenAPIClient) RPCCall(result interface{}, method string, params []interface{}) (err error)
- type XenAPIObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host XenAPIObject
func (*Host) CallPlugin ¶
func (*Host) GetAddress ¶
func (*Host) GetSoftwareVersion ¶
type Network ¶
type Network XenAPIObject
func (*Network) GetAssignedIPs ¶
func (*Network) GetOtherConfig ¶
func (*Network) IsHostInternalManagementNetwork ¶
type PIF ¶
type PIF XenAPIObject
type Pool ¶
type Pool XenAPIObject
type Task ¶
type Task XenAPIObject
func (*Task) GetErrorInfo ¶
func (*Task) GetProgress ¶
func (*Task) GetResult ¶
func (self *Task) GetResult() (object *XenAPIObject, err error)
func (*Task) GetStatus ¶
func (self *Task) GetStatus() (status TaskStatusType, err error)
type TaskStatusType ¶
type TaskStatusType int
const ( Pending TaskStatusType Success Failure Cancelling Cancelled )
type TransferRecord ¶
type TransferRecord struct {
UrlFull string `xml:"url_full,attr"`
}
type VBD ¶
type VBD XenAPIObject
type VDI ¶
type VDI XenAPIObject
func (*VDI) GetVirtualSize ¶
func (*VDI) SetNameLabel ¶
func (*VDI) SetReadOnly ¶
func (*VDI) SetSharable ¶
type VM ¶
type VM XenAPIObject
func (*VM) CleanReboot ¶
func (*VM) CleanShutdown ¶
func (*VM) ConnectNetwork ¶
func (*VM) ConnectVdi ¶
func (*VM) DisconnectVdi ¶
func (*VM) GetAllowedVBDDevices ¶
func (*VM) GetAllowedVIFDevices ¶
func (*VM) GetDomainId ¶
func (*VM) GetGuestMetrics ¶
func (*VM) GetGuestMetricsRef ¶
func (*VM) GetHVMBootPolicy ¶
func (*VM) GetNameLabel ¶
func (*VM) GetOtherConfig ¶
func (*VM) GetPowerState ¶
func (*VM) GetResidentOn ¶
func (*VM) GetSnapshots ¶
func (*VM) GetVMGuestMetrics ¶
func (self *VM) GetVMGuestMetrics() (vm_guest_metrics *VM_Guest_Metrics, err error)
func (*VM) HardReboot ¶
func (*VM) HardShutdown ¶
func (*VM) SetDescription ¶
func (*VM) SetHVMBoot ¶
func (*VM) SetHaAlwaysRun ¶
func (*VM) SetIsATemplate ¶
func (*VM) SetNameLabel ¶
func (*VM) SetOtherConfig ¶
func (*VM) SetPVBootloader ¶
func (*VM) SetStaticMemoryRange ¶
func (*VM) SetSuspendSR ¶
func (*VM) SetVCPUsAtStartup ¶
func (*VM) SetVCPUsMax ¶
func (*VM) SetVCpuAtStartup ¶
func (*VM) SetVCpuMax ¶
type VM_Guest_Metrics ¶
type VM_Guest_Metrics XenAPIObject
func (*VM_Guest_Metrics) GetNetworks ¶
func (self *VM_Guest_Metrics) GetNetworks() (ipMap map[string]string, err error)
type XenAPIClient ¶
type XenAPIClient struct { Session interface{} Host string Url string Username string Password string RPC *xmlrpc.Client }
func NewXenAPIClient ¶
func NewXenAPIClient(host, username, password string) (client XenAPIClient)
func (*XenAPIClient) APICall ¶
func (client *XenAPIClient) APICall(result *APIResult, method string, params ...interface{}) (err error)
func (*XenAPIClient) CreateNetwork ¶
func (*XenAPIClient) CreateTask ¶
func (client *XenAPIClient) CreateTask() (task *Task, err error)
func (*XenAPIClient) GetDefaultSR ¶
func (client *XenAPIClient) GetDefaultSR() (sr *SR, err error)
func (*XenAPIClient) GetHostByNameLabel ¶
func (client *XenAPIClient) GetHostByNameLabel(name_label string) (hosts []*Host, err error)
func (*XenAPIClient) GetHostByUuid ¶
func (client *XenAPIClient) GetHostByUuid(host_uuid string) (host *Host, err error)
func (*XenAPIClient) GetHosts ¶
func (client *XenAPIClient) GetHosts() (hosts []*Host, err error)
func (*XenAPIClient) GetNetworkByNameLabel ¶
func (client *XenAPIClient) GetNetworkByNameLabel(name_label string) (networks []*Network, err error)
func (*XenAPIClient) GetNetworkByUuid ¶
func (client *XenAPIClient) GetNetworkByUuid(network_uuid string) (network *Network, err error)
func (*XenAPIClient) GetNetworks ¶
func (client *XenAPIClient) GetNetworks() (networks []*Network, err error)
func (*XenAPIClient) GetPIFs ¶
func (client *XenAPIClient) GetPIFs() (pifs []*PIF, err error)
func (*XenAPIClient) GetPools ¶
func (client *XenAPIClient) GetPools() (pools []*Pool, err error)
func (*XenAPIClient) GetSRByNameLabel ¶
func (client *XenAPIClient) GetSRByNameLabel(name_label string) (srs []*SR, err error)
func (*XenAPIClient) GetSRByUuid ¶
func (client *XenAPIClient) GetSRByUuid(sr_uuid string) (sr *SR, err error)
func (*XenAPIClient) GetVMAll ¶
func (client *XenAPIClient) GetVMAll() (vms []*VM, err error)
func (*XenAPIClient) GetVMByNameLabel ¶
func (client *XenAPIClient) GetVMByNameLabel(name_label string) (vms []*VM, err error)
func (*XenAPIClient) GetVMByUuid ¶
func (client *XenAPIClient) GetVMByUuid(vm_uuid string) (vm *VM, err error)
func (*XenAPIClient) GetVdiByNameLabel ¶
func (client *XenAPIClient) GetVdiByNameLabel(name_label string) (vdis []*VDI, err error)
func (*XenAPIClient) GetVdiByUuid ¶
func (client *XenAPIClient) GetVdiByUuid(vdi_uuid string) (vdi *VDI, err error)
func (*XenAPIClient) Login ¶
func (client *XenAPIClient) Login() (err error)
func (*XenAPIClient) RPCCall ¶
func (c *XenAPIClient) RPCCall(result interface{}, method string, params []interface{}) (err error)
type XenAPIObject ¶
type XenAPIObject struct { Ref string Client *XenAPIClient }
Click to show internal directories.
Click to hide internal directories.