Versions in this module Expand all Collapse all v1 v1.0.1 Nov 27, 2023 Changes in this version + const DebugLargeBodyThreshold + const ERROR_QemuDiskId_Invalid + const Error_IsoFile_File + const Error_IsoFile_Storage + const Error_NewUserID + const Error_QemuCdRom_MutuallyExclusive + const Error_QemuCloudInitDisk_OnlyOne + const Error_QemuCloudInitDisk_Storage + const Error_QemuDiskBandwidthIopsLimitBurst + const Error_QemuDiskBandwidthIopsLimitConcurrent + const Error_QemuDiskBandwidthMBpsLimitBurst + const Error_QemuDiskBandwidthMBpsLimitConcurrent + const Error_QemuDiskSerial_IllegalCharacter + const Error_QemuDiskSerial_IllegalLength + const Error_QemuDisk_File + const Error_QemuDisk_MutuallyExclusive + const Error_QemuDisk_Size + const Error_QemuDisk_Storage + const TaskStatusCheckInterval + var Debug = new(bool) + func AddToList(list, newItem string) string + func ArrayToCSV(array interface{}) (csv string) + func ArrayToStringType(inputarray []interface{}) (array []string) + func BoolInvert(b bool) bool + func Btoi(b bool) int + func CSVtoArray(csv string) []string + func CheckFileExistence(fileName string, files *[]Content_FileProperties) bool + func CheckUserExistence(userId UserID, client *Client) (existence bool, err error) + func DeleteFile(client *Client, node string, content Content_File) (err error) + func DeleteSnapshot(c *Client, vmr *VmRef, snapshot string) (exitStatus string, err error) + func DiskSizeGB(dcSize interface{}) float64 + func DownloadIsoFromUrl(client *Client, content ConfigContent_Iso) (err error) + func DownloadLxcTemplate(client *Client, content ConfigContent_Template) (err error) + func ErrorItemExists(item, text string) error + func ErrorItemNotExists(item, text string) error + func ErrorKeyEmpty(text string) error + func ErrorKeyNotSet(text string) error + func FormatDiskParam(disk QemuDevice) string + func FormatUsbParam(usb QemuDevice) string + func GuestHasPendingChanges(vmr *VmRef, client *Client) (bool, error) + func GuestReboot(vmr *VmRef, client *Client) (err error) + func ItemInKeyOfArray(array []interface{}, key, value string) (existance bool) + func Itob(i int) bool + func ListFiles(client *Client, node, storage string, content ContentType) (files *[]Content_FileProperties, err error) + func ListGroups(client *Client) (*[]ConfigGroup, error) + func ListSnapshots(c *Client, vmr *VmRef) (rawSnapshots, error) + func ListTemplates(client *Client, node string) (templateList *[]TemplateItem, err error) + func ListUsers(client *Client, full bool) (*[]ConfigUser, error) + func MaxVmId(client *Client) (max int, err error) + func MoveQemuDisk(format *QemuDiskFormat, diskId QemuDiskId, storage string, ...) (err error) + func NewUserIDs(userIds string) (*[]UserID, error) + func ParamsToBody(params map[string]interface{}) (body []byte) + func ParamsToBodyWithAllEmpty(params map[string]interface{}) (body []byte) + func ParamsToBodyWithEmpty(params map[string]interface{}, allowedEmpty []string) (body []byte) + func ParamsToValues(params map[string]interface{}) (vals url.Values) + func ParamsToValuesWithAllEmpty(params map[string]interface{}, allowedEmpty []string, allowEmpty bool) (vals url.Values) + func ParamsToValuesWithEmpty(params map[string]interface{}, allowedEmpty []string) (vals url.Values) + func ParseSubConf(element string, separator string) (key string, value interface{}) + func PointerBool(boolean bool) *bool + func PointerInt(number int) *int + func PointerString(text string) *string + func RemoveSshForwardUsernet(vmr *VmRef, client *Client) (err error) + func ResponseJSON(resp *http.Response) (jbody map[string]interface{}, err error) + func RollbackSnapshot(c *Client, vmr *VmRef, snapshot string) (exitStatus string, err error) + func SendKeysString(vmr *VmRef, client *Client, keys string) (err error) + func SshForwardUsernet(vmr *VmRef, client *Client) (sshPort string, err error) + func TypedResponse(resp *http.Response, v interface{}) error + func UpdateSnapshotDescription(c *Client, vmr *VmRef, snapshot, description string) (err error) + func ValidateArrayEven(array interface{}, text string) error + func ValidateArrayNotEmpty(array interface{}, text string) error + func ValidateFilePath(path, text string) error + func ValidateIntGreater(min, value int, text string) error + func ValidateIntGreaterOrEquals(min, value int, text string) error + func ValidateIntInRange(min, max, value int, text string) error + func ValidateStringInArray(array []string, value, text string) error + func ValidateStringNotEmpty(value, text string) error + func ValidateStringsEqual(value1, value2, text string) error + func WaitForShutdown(vmr *VmRef, client *Client) (err error) + type AgentNetworkInterface struct + IPAddresses []net.IP + MACAddress string + Name string + Statistics map[string]uint64 + func (a *AgentNetworkInterface) UnmarshalJSON(b []byte) error + type ApiToken struct + Comment string + Expire int64 + Privsep bool + TokenId string + type ApiTokenCreateResult struct + Info map[string]interface{} + Value string + type ApiTokenCreateResultWrapper struct + Data ApiTokenCreateResult + type Client struct + ApiUrl string + Otp string + Password string + TaskTimeout int + Username string + func NewClient(apiUrl string, hclient *http.Client, http_headers string, tls *tls.Config, ...) (client *Client, err error) + func (c *Client) AddQemuIPSet(vmr *VmRef, name string, params map[string]interface{}) (exitStatus interface{}, err error) + func (c *Client) ApplySDN() (string, error) + func (c *Client) CheckAcmePluginExistence(id string) (existance bool, err error) + func (c *Client) CheckMetricServerExistence(id string) (existance bool, err error) + func (c *Client) CheckSDNDNSExistance(id string) (existance bool, err error) + func (c *Client) CheckSDNSubnetExistance(vnet, id string) (existance bool, err error) + func (c *Client) CheckSDNVNetExistance(id string) (existance bool, err error) + func (c *Client) CheckSDNZoneExistance(id string) (existance bool, err error) + func (c *Client) CheckStorageExistance(id string) (existance bool, err error) + func (c *Client) CheckTask(resp *http.Response) (exitStatus string, err error) + func (c *Client) CheckVmRef(vmr *VmRef) (err error) + func (c *Client) CloneLxcContainer(vmr *VmRef, vmParams map[string]interface{}) (exitStatus string, err error) + func (c *Client) CloneQemuVm(vmr *VmRef, vmParams map[string]interface{}) (exitStatus string, err error) + func (c *Client) CreateAcmeAccount(params map[string]interface{}) (exitStatus string, err error) + func (c *Client) CreateAcmePlugin(params map[string]interface{}) error + func (c *Client) CreateItemReturnStatus(params map[string]interface{}, url string) (exitStatus string, err error) + func (c *Client) CreateLxcContainer(node string, vmParams map[string]interface{}) (exitStatus string, err error) + func (c *Client) CreateMetricServer(id string, params map[string]interface{}) error + func (c *Client) CreateNetwork(node string, params map[string]interface{}) (exitStatus string, err error) + func (c *Client) CreateNewDisk(vmr *VmRef, disk string, volume string) (exitStatus interface{}, err error) + func (c *Client) CreatePool(poolid string, comment string) error + func (c *Client) CreateQemuIPSet(vmr *VmRef, params map[string]interface{}) (exitStatus interface{}, err error) + func (c *Client) CreateQemuSnapshot(vmr *VmRef, snapshotName string) (exitStatus string, err error) + func (c *Client) CreateQemuVm(node string, vmParams map[string]interface{}) (exitStatus string, err error) + func (c *Client) CreateSDNDNS(params map[string]interface{}) error + func (c *Client) CreateSDNSubnet(vnet string, params map[string]interface{}) error + func (c *Client) CreateSDNVNet(params map[string]interface{}) error + func (c *Client) CreateSDNZone(params map[string]interface{}) error + func (c *Client) CreateStorage(params map[string]interface{}) error + func (c *Client) CreateTemplate(vmr *VmRef) error + func (c *Client) CreateVMDisk(nodeName string, storageName string, fullDiskName string, ...) error + func (c *Client) CreateVNCProxy(vmr *VmRef, params map[string]interface{}) (vncProxyRes map[string]interface{}, err error) + func (c *Client) Delete(url string) (err error) + func (c *Client) DeleteAcmeAccount(id string) (exitStatus string, err error) + func (c *Client) DeleteAcmePlugin(id string) (err error) + func (c *Client) DeleteMetricServer(id string) error + func (c *Client) DeleteNetwork(node string, iface string) (exitStatus string, err error) + func (c *Client) DeletePool(poolid string) error + func (c *Client) DeleteQemuIPSet(vmr *VmRef, IPSetName string) (exitStatus interface{}, err error) + func (c *Client) DeleteQemuIPSetNetwork(vmr *VmRef, IPSetName string, network string, params map[string]interface{}) (exitStatus interface{}, err error) + func (c *Client) DeleteQemuSnapshot(vmr *VmRef, snapshotName string) (exitStatus string, err error) + func (c *Client) DeleteSDNDNS(name string) error + func (c *Client) DeleteSDNSubnet(vnet, name string) error + func (c *Client) DeleteSDNVNet(name string) error + func (c *Client) DeleteSDNZone(zoneName string) error + func (c *Client) DeleteStorage(id string) error + func (c *Client) DeleteVMDisks(node string, disks []string) error + func (c *Client) DeleteVm(vmr *VmRef) (exitStatus string, err error) + func (c *Client) DeleteVmParams(vmr *VmRef, params map[string]interface{}) (exitStatus string, err error) + func (c *Client) DeleteVolume(vmr *VmRef, storageName string, volumeName string) (exitStatus interface{}, err error) + func (c *Client) DeleteWithTask(url string) (exitStatus string, err error) + func (c *Client) EnableStorage(id string) error + func (c *Client) GetAcmeAccountConfig(id string) (config map[string]interface{}, err error) + func (c *Client) GetAcmeAccountList() (accounts map[string]interface{}, err error) + func (c *Client) GetAcmeDirectoriesUrl() (url []string, err error) + func (c *Client) GetAcmePluginConfig(id string) (config map[string]interface{}, err error) + func (c *Client) GetAcmePluginList() (accounts map[string]interface{}, err error) + func (c *Client) GetAcmeTosUrl() (url string, err error) + func (c *Client) GetExecStatus(vmr *VmRef, pid string) (status map[string]interface{}, err error) + func (c *Client) GetHAGroupByName(GroupName string) (*HAGroup, error) + func (c *Client) GetHAGroupList() (haGroups []HAGroup, err error) + func (c *Client) GetItemConfig(url, text, message string) (config map[string]interface{}, err error) + func (c *Client) GetItemConfigInterfaceArray(url, text, message string) ([]interface{}, error) + func (c *Client) GetItemConfigMapStringInterface(url, text, message string) (map[string]interface{}, error) + func (c *Client) GetItemConfigString(url, text, message string) (string, error) + func (c *Client) GetItemList(url string) (list map[string]interface{}, err error) + func (c *Client) GetItemListInterfaceArray(url string) ([]interface{}, error) + func (c *Client) GetJsonRetryable(url string, data *map[string]interface{}, tries int) error + func (c *Client) GetMetricServerConfig(id string) (config map[string]interface{}, err error) + func (c *Client) GetMetricsServerList() (metricServers map[string]interface{}, err error) + func (c *Client) GetNetworkInterface(node string, iface string) (exitStatus string, err error) + func (c *Client) GetNetworkList(node string, typeFilter string) (exitStatus string, err error) + func (c *Client) GetNextID(currentID int) (nextID int, err error) + func (c *Client) GetNodeList() (list map[string]interface{}, err error) + func (c *Client) GetPoolInfo(poolid string) (poolInfo map[string]interface{}, err error) + func (c *Client) GetPoolList() (pools map[string]interface{}, err error) + func (c *Client) GetQemuFirewallOptions(vmr *VmRef) (firewallOptions map[string]interface{}, err error) + func (c *Client) GetQemuIPSet(vmr *VmRef) (ipsets map[string]interface{}, err error) + func (c *Client) GetResourceList(resourceType string) (list []interface{}, err error) + func (c *Client) GetSDNDNS(name string) (dns map[string]interface{}, err error) + func (c *Client) GetSDNDNSs(typeFilter string) (list map[string]interface{}, err error) + func (c *Client) GetSDNSubnet(vnet, name string) (subnet map[string]interface{}, err error) + func (c *Client) GetSDNSubnets(vnet string) (list map[string]interface{}, err error) + func (c *Client) GetSDNVNet(name string) (dns map[string]interface{}, err error) + func (c *Client) GetSDNVNets(pending bool) (list map[string]interface{}, err error) + func (c *Client) GetSDNZone(zoneName string) (zone map[string]interface{}, err error) + func (c *Client) GetSDNZones(pending bool, typeFilter string) (list map[string]interface{}, err error) + func (c *Client) GetStorageConfig(id string) (config map[string]interface{}, err error) + func (c *Client) GetStorageContent(vmr *VmRef, storageName string) (data map[string]interface{}, err error) + func (c *Client) GetStorageList() (metricServers map[string]interface{}, err error) + func (c *Client) GetStorageStatus(vmr *VmRef, storageName string) (storageStatus map[string]interface{}, err error) + func (c *Client) GetTaskExitstatus(taskUpid string) (exitStatus interface{}, err error) + func (c *Client) GetUserPermissions(id UserID, path string) (permissions []string, err error) + func (c *Client) GetVersion() (data map[string]interface{}, err error) + func (c *Client) GetVmAgentNetworkInterfaces(vmr *VmRef) ([]AgentNetworkInterface, error) + func (c *Client) GetVmConfig(vmr *VmRef) (vmConfig map[string]interface{}, err error) + func (c *Client) GetVmInfo(vmr *VmRef) (vmInfo map[string]interface{}, err error) + func (c *Client) GetVmList() (map[string]interface{}, error) + func (c *Client) GetVmRefByName(vmName string) (vmr *VmRef, err error) + func (c *Client) GetVmRefsByName(vmName string) (vmrs []*VmRef, err error) + func (c *Client) GetVmSpiceProxy(vmr *VmRef) (vmSpiceProxy map[string]interface{}, err error) + func (c *Client) GetVmState(vmr *VmRef) (vmState map[string]interface{}, err error) + func (c *Client) HandleTaskError(resp *http.Response) (exitStatus string) + func (c *Client) HibernateVm(vmr *VmRef) (exitStatus string, err error) + func (c *Client) ListQemuSnapshot(vmr *VmRef) (taskResponse map[string]interface{}, exitStatus string, err error) + func (c *Client) Login(username string, password string, otp string) (err error) + func (c *Client) MigrateNode(vmr *VmRef, newTargetNode string, online bool) (exitStatus interface{}, err error) + func (c *Client) MonitorCmd(vmr *VmRef, command string) (monitorRes map[string]interface{}, err error) + func (c *Client) MoveLxcDisk(vmr *VmRef, disk string, storage string) (exitStatus interface{}, err error) + func (c *Client) MoveQemuDisk(vmr *VmRef, disk string, storage string) (exitStatus interface{}, err error) + func (c *Client) MoveQemuDiskToVM(vmrSource *VmRef, disk string, vmrTarget *VmRef) (exitStatus interface{}, err error) + func (c *Client) PauseVm(vmr *VmRef) (exitStatus string, err error) + func (c *Client) Post(Params map[string]interface{}, url string) (err error) + func (c *Client) PostWithTask(Params map[string]interface{}, url string) (exitStatus string, err error) + func (c *Client) Put(Params map[string]interface{}, url string) (err error) + func (c *Client) PutWithTask(Params map[string]interface{}, url string) (exitStatus string, err error) + func (c *Client) QemuAgentExec(vmr *VmRef, params map[string]interface{}) (result map[string]interface{}, err error) + func (c *Client) QemuAgentFileWrite(vmr *VmRef, params map[string]interface{}) (err error) + func (c *Client) QemuAgentPing(vmr *VmRef) (pingRes map[string]interface{}, err error) + func (c *Client) QemuAgentSetUserPassword(vmr *VmRef, params map[string]interface{}) (result map[string]interface{}, err error) + func (c *Client) ReadVMHA(vmr *VmRef) (err error) + func (c *Client) RebootNode(node string) (exitStatus string, err error) + func (c *Client) ResetVm(vmr *VmRef) (exitStatus string, err error) + func (c *Client) ResizeQemuDisk(vmr *VmRef, disk string, moreSizeGB int) (exitStatus interface{}, err error) + func (c *Client) ResizeQemuDiskRaw(vmr *VmRef, disk string, size string) (exitStatus interface{}, err error) + func (c *Client) ResumeVm(vmr *VmRef) (exitStatus string, err error) + func (c *Client) RevertNetwork(node string) (exitStatus string, err error) + func (c *Client) RollbackQemuVm(vmr *VmRef, snapshot string) (exitStatus string, err error) + func (c *Client) Sendkey(vmr *VmRef, qmKey string) error + func (c *Client) SetAPIToken(userID, token string) + func (c *Client) SetLxcConfig(vmr *VmRef, vmParams map[string]interface{}) (exitStatus interface{}, err error) + func (c *Client) SetQemuFirewallOptions(vmr *VmRef, fwOptions map[string]interface{}) (exitStatus interface{}, err error) + func (c *Client) SetVmConfig(vmr *VmRef, params map[string]interface{}) (exitStatus interface{}, err error) + func (c *Client) ShutdownNode(node string) (exitStatus string, err error) + func (c *Client) ShutdownVm(vmr *VmRef) (exitStatus string, err error) + func (c *Client) StartVm(vmr *VmRef) (exitStatus string, err error) + func (c *Client) StatusChangeVm(vmr *VmRef, params map[string]interface{}, setStatus string) (exitStatus string, err error) + func (c *Client) StopVm(vmr *VmRef) (exitStatus string, err error) + func (c *Client) UpdateAcmeAccountEmails(id, emails string) (exitStatus string, err error) + func (c *Client) UpdateAcmePlugin(id string, params map[string]interface{}) error + func (c *Client) UpdateItemReturnStatus(params map[string]interface{}, url string) (exitStatus string, err error) + func (c *Client) UpdateMetricServer(id string, params map[string]interface{}) error + func (c *Client) UpdateNetwork(node string, iface string, params map[string]interface{}) (exitStatus string, err error) + func (c *Client) UpdatePoolComment(poolid string, comment string) error + func (c *Client) UpdateSDNDNS(id string, params map[string]interface{}) error + func (c *Client) UpdateSDNSubnet(vnet, id string, params map[string]interface{}) error + func (c *Client) UpdateSDNVNet(id string, params map[string]interface{}) error + func (c *Client) UpdateSDNZone(id string, params map[string]interface{}) error + func (c *Client) UpdateStorage(id string, params map[string]interface{}) error + func (c *Client) UpdateVMHA(vmr *VmRef, haState string, haGroup string) (exitStatus interface{}, err error) + func (c *Client) UpdateVMPool(vmr *VmRef, pool string) (exitStatus interface{}, err error) + func (c *Client) Upload(node string, storage string, contentType string, filename string, ...) error + func (c *Client) UploadLargeFile(node string, storage string, contentType string, filename string, ...) error + func (c *Client) VMIdExists(vmID int) (exists bool, err error) + func (c *Client) VzDump(vmr *VmRef, params map[string]interface{}) (exitStatus interface{}, err error) + func (c *Client) WaitForCompletion(taskResponse map[string]interface{}) (waitExitStatus string, err error) + func (c Client) ApplyNetwork(node string) (exitStatus string, err error) + type ConfigAcmeAccount struct + Contact []string + Directory string + Name string + Tos bool + func NewConfigAcmeAccountFromApi(id string, client *Client) (config *ConfigAcmeAccount, err error) + func NewConfigAcmeAccountFromJson(input []byte) (config *ConfigAcmeAccount, err error) + func (config ConfigAcmeAccount) CreateAcmeAccount(acmeId string, client *Client) (err error) + type ConfigAcmePlugin struct + API string + Data string + Enable bool + ID string + Nodes []string + ValidationDelay int + func NewConfigAcmePluginFromApi(id string, client *Client) (config *ConfigAcmePlugin, err error) + func NewConfigAcmePluginFromJson(input []byte) (config *ConfigAcmePlugin, err error) + func (config ConfigAcmePlugin) CreateAcmePlugin(client *Client) (err error) + func (config ConfigAcmePlugin) SetAcmePlugin(pluginId string, client *Client) (err error) + func (config ConfigAcmePlugin) UpdateAcmePlugin(client *Client) (err error) + type ConfigContent_Iso struct + Checksum string + ChecksumAlgorithm string + DownloadUrl string + Filename string + Node string + Storage string + func (content ConfigContent_Iso) Validate() (err error) + type ConfigContent_Template struct + Node string + Storage string + Template string + func (content ConfigContent_Template) Validate() (err error) + type ConfigGroup struct + Comment string + Members *[]UserID + Name GroupName + func NewConfigGroupFromApi(groupId GroupName, client *Client) (*ConfigGroup, error) + func (config *ConfigGroup) Create(client *Client) error + func (config *ConfigGroup) Set(client *Client) (err error) + func (config *ConfigGroup) Update(client *Client) error + func (config *ConfigGroup) Validate(create bool) (err error) + type ConfigLxc struct + Arch string + BWLimit int + CMode string + CPULimit int + CPUUnits int + Clone string + CloneStorage string + Console bool + Cores int + Description string + Features QemuDevice + Force bool + Full bool + HaGroup string + HaState string + Hookscript string + Hostname string + IgnoreUnpackErrors bool + Lock string + Memory int + Mountpoints QemuDevices + Nameserver string + Networks QemuDevices + OnBoot bool + OsType string + Ostemplate string + Password string + Pool string + Protection bool + Restore bool + RootFs QemuDevice + SSHPublicKeys string + SearchDomain string + Snapname string + Start bool + Startup string + Storage string + Swap int + Tags string + Template bool + Tty int + Unique bool + Unprivileged bool + Unused []string + func NewConfigLxc() ConfigLxc + func NewConfigLxcFromApi(vmr *VmRef, client *Client) (config *ConfigLxc, err error) + func NewConfigLxcFromJson(input []byte) (config ConfigLxc, err error) + func (config ConfigLxc) CloneLxc(vmr *VmRef, client *Client) (err error) + func (config ConfigLxc) CreateLxc(vmr *VmRef, client *Client) (err error) + func (config ConfigLxc) UpdateConfig(vmr *VmRef, client *Client) (err error) + type ConfigMetrics struct + Enable bool + Graphite *ConfigMetricsGraphite + InfluxDB *ConfigMetricsInfluxDB + MTU int + Name string + Port int + Server string + Timeout int + Type string + func InstantiateConfigMetrics() *ConfigMetrics + func NewConfigMetricsFromApi(metricsId string, client *Client) (config *ConfigMetrics, err error) + func NewConfigMetricsFromJson(input []byte) (config *ConfigMetrics, err error) + func (config *ConfigMetrics) CreateMetrics(client *Client) (err error) + func (config *ConfigMetrics) RemoveMetricsNestedStructs() + func (config *ConfigMetrics) SetMetrics(metricsId string, client *Client) (err error) + func (config *ConfigMetrics) UpdateMetrics(client *Client) (err error) + func (config *ConfigMetrics) ValidateMetrics() (err error) + type ConfigMetricsGraphite struct + Path string + Protocol string + type ConfigMetricsInfluxDB struct + ApiPathPrefix string + Bucket string + MaxBodySize int + Organization string + Protocol string + Token string + VerifyCertificate bool + type ConfigNetwork struct + Address string + Address6 string + Autostart bool + BondMode string + BondPrimary string + BondXmitHashPolicy string + BridgePorts string + BridgeVlanAware bool + CIDR string + CIDR6 string + Comments string + Comments6 string + Gateway string + Gateway6 string + Iface string + MTU int + Netmask string + Netmask6 int + Node string + OVSBonds string + OVSBridge string + OVSOptions string + OVSPorts string + OVSTag int + Slaves string + Type string + VlanID int + VlanRawDevice string + func NewConfigNetworkFromJSON(input []byte) (config *ConfigNetwork, err error) + func (config ConfigNetwork) CreateNetwork(client *Client) (err error) + func (config ConfigNetwork) UpdateNetwork(client *Client) (err error) + type ConfigQemu struct + Agent int + Args string + Balloon int + Bios string + Boot string + BootDisk string + CIcustom string + CIpassword string + CIuser string + Description string + Disks *QemuStorages + EFIDisk QemuDevice + FullClone *int + HaGroup string + HaState string + Hookscript string + Hotplug string + Ipconfig IpconfigMap + Iso *IsoFile + LinkedVmId uint + Machine string + Memory int + Name string + Nameserver string + Node string + Onboot *bool + Pool string + QemuCores int + QemuCpu string + QemuDisks QemuDevices + QemuIso string + QemuKVM *bool + QemuNetworks QemuDevices + QemuNuma *bool + QemuOs string + QemuPCIDevices QemuDevices + QemuPxe bool + QemuSerials QemuDevices + QemuSockets int + QemuUnusedDisks QemuDevices + QemuUsbs QemuDevices + QemuVcpus int + QemuVga QemuDevice + RNGDrive QemuDevice + Scsihw string + Searchdomain string + Smbios1 string + Sshkeys string + Startup string + Tablet *bool + Tags string + VmID int + func NewConfigQemuFromApi(vmr *VmRef, client *Client) (config *ConfigQemu, err error) + func NewConfigQemuFromJson(input []byte) (config *ConfigQemu, err error) + func (c ConfigQemu) CreateIpconfigParams(params map[string]interface{}) error + func (c ConfigQemu) CreateQemuDisksParams(params map[string]interface{}, cloned bool) + func (c ConfigQemu) CreateQemuEfiParams(params map[string]interface{}) + func (c ConfigQemu) CreateQemuMachineParam(params map[string]interface{}) error + func (c ConfigQemu) CreateQemuNetworksParams(params map[string]interface{}) + func (c ConfigQemu) CreateQemuPCIsParams(params map[string]interface{}) + func (c ConfigQemu) CreateQemuRngParams(params map[string]interface{}) + func (c ConfigQemu) CreateQemuSerialsParams(params map[string]interface{}) + func (c ConfigQemu) CreateQemuUsbsParams(params map[string]interface{}) + func (c ConfigQemu) String() string + func (config ConfigQemu) CloneVm(sourceVmr *VmRef, vmr *VmRef, client *Client) (err error) + func (config ConfigQemu) Create(vmr *VmRef, client *Client) (err error) + func (config ConfigQemu) CreateVm(vmr *VmRef, client *Client) (err error) + func (config ConfigQemu) HasCloudInit() bool + func (config ConfigQemu) UpdateConfig(vmr *VmRef, client *Client) (err error) + func (config ConfigQemu) Validate() (err error) + func (newConfig ConfigQemu) Update(rebootIfNeeded bool, vmr *VmRef, client *Client) (rebootRequired bool, err error) + type ConfigSDNDNS struct + DNS string + Digest string + Key string + ReverseMaskV6 int + ReverseV6Mask int + TTL int + Type string + URL string + func NewConfigSDNDNSFromJson(input []byte) (config *ConfigSDNDNS, err error) + func (c *ConfigSDNDNS) Validate(id string, create bool, client *Client) (err error) + func (config *ConfigSDNDNS) Create(id string, client *Client) (err error) + func (config *ConfigSDNDNS) CreateWithValidate(id string, client *Client) (err error) + func (config *ConfigSDNDNS) Update(id string, client *Client) (err error) + func (config *ConfigSDNDNS) UpdateWithValidate(id string, client *Client) (err error) + type ConfigSDNSubnet struct + DNSZonePrefix string + Delete string + Digest string + Gateway string + SNAT bool + Subnet string + Type string + func NewConfigSDNSubnetFromJson(input []byte) (config *ConfigSDNSubnet, err error) + func (c *ConfigSDNSubnet) Validate(vnet, id string, create bool, client *Client) (err error) + func (config *ConfigSDNSubnet) Create(vnet, id string, client *Client) (err error) + func (config *ConfigSDNSubnet) CreateWithValidate(vnet, id string, client *Client) (err error) + func (config *ConfigSDNSubnet) Update(vnet, id string, client *Client) (err error) + func (config *ConfigSDNSubnet) UpdateWithValidate(vnet, id string, client *Client) (err error) + type ConfigSDNVNet struct + Alias string + Delete string + Digest string + Tag int + VLANAware bool + VNet string + Zone string + func NewConfigSDNVNetFromJson(input []byte) (config *ConfigSDNVNet, err error) + func (c *ConfigSDNVNet) Validate(id string, create bool, client *Client) (err error) + func (config *ConfigSDNVNet) Create(id string, client *Client) (err error) + func (config *ConfigSDNVNet) CreateWithValidate(id string, client *Client) (err error) + func (config *ConfigSDNVNet) Update(id string, client *Client) (err error) + func (config *ConfigSDNVNet) UpdateWithValidate(id string, client *Client) (err error) + type ConfigSDNZone struct + AdvertiseSubnets bool + Bridge string + BridgeDisableMacLearning bool + Controller string + DNS string + DNSZone string + DPID int + Delete string + Digest string + DisableARPNDSuppression bool + ExitNodes string + ExitNodesLocalRouting bool + ExitNodesPrimary string + IPAM string + MAC string + MTU int + Nodes string + Peers string + RTImport string + ReverseDNS string + Tag int + Type string + VlanProtocol string + VrfVxlan int + Zone string + func NewConfigSDNZoneFromJson(input []byte) (config *ConfigSDNZone, err error) + func (c *ConfigSDNZone) Validate(id string, create bool, client *Client) (err error) + func (config *ConfigSDNZone) Create(id string, client *Client) (err error) + func (config *ConfigSDNZone) CreateWithValidate(id string, client *Client) (err error) + func (config *ConfigSDNZone) Update(id string, client *Client) (err error) + func (config *ConfigSDNZone) UpdateWithValidate(id string, client *Client) (err error) + type ConfigSnapshot struct + Description string + Name string + VmState bool + func (config ConfigSnapshot) CreateSnapshot(c *Client, vmr *VmRef) (err error) + type ConfigStorage struct + BackupRetention *ConfigStorageBackupRetention + CephFS *ConfigStorageCephFS + Content *ConfigStorageContent + Directory *ConfigStorageDirectory + Enable bool + GlusterFS *ConfigStorageGlusterFS + ID string + ISCSI *ConfigStorageISCSI + LVM *ConfigStorageLVM + LVMThin *ConfigStorageLVMThin + NFS *ConfigStorageNFS + Nodes []string + PBS *ConfigStoragePBS + RBD *ConfigStorageRBD + SMB *ConfigStorageSMB + Type string + ZFS *ConfigStorageZFS + ZFSoverISCSI *ConfigStorageZFSoverISCSI + func NewConfigStorageFromApi(storageid string, client *Client) (config *ConfigStorage, err error) + func NewConfigStorageFromJson(input []byte) (config *ConfigStorage, err error) + func (config *ConfigStorage) Create(id string, errorSupression bool, client *Client) (err error) + func (config *ConfigStorage) CreateWithValidate(id string, client *Client) (err error) + func (config *ConfigStorage) RemapFromAPI() + func (config *ConfigStorage) RemapToAPI() + func (config *ConfigStorage) SetDefaults() + func (config *ConfigStorage) Update(id string, client *Client) (err error) + func (config *ConfigStorage) UpdateWithValidate(id string, client *Client) (err error) + func (newConfig *ConfigStorage) Validate(id string, create bool, client *Client) (err error) + type ConfigStorageBackupRetention struct + Daily *int + Hourly *int + Last *int + Monthly *int + Weekly *int + Yearly *int + func (b *ConfigStorageBackupRetention) AllNil() bool + func (b *ConfigStorageBackupRetention) MapStorageBackupRetention() string + func (b *ConfigStorageBackupRetention) Validate() (err error) + type ConfigStorageCephFS struct + FSname string + Monitors []string + SecretKey *string + Username string + type ConfigStorageContent struct + Backup *bool + Container *bool + DiskImage *bool + Iso *bool + Snippets *bool + Template *bool + func (c *ConfigStorageContent) MapStorageContent(array []bool) (list string) + func (c *ConfigStorageContent) Validate(storageType string) error + type ConfigStorageDirectory struct + Path string + Preallocation *string + Shared bool + func (directory *ConfigStorageDirectory) SetDefaults() + type ConfigStorageGlusterFS struct + Preallocation *string + Server1 string + Server2 string + Volume string + func (glusterfs *ConfigStorageGlusterFS) SetDefaults() + type ConfigStorageISCSI struct + Portal string + Target string + type ConfigStorageLVM struct + Shared bool + VGname string + type ConfigStorageLVMThin struct + Thinpool string + VGname string + type ConfigStorageNFS struct + Export string + Preallocation *string + Server string + Version *string + func (nfs *ConfigStorageNFS) SetDefaults() + type ConfigStoragePBS struct + Datastore string + Fingerprint string + Namespace string + Password *string + Port *int + Server string + Username string + func (pbs *ConfigStoragePBS) SetDefaults() + type ConfigStorageRBD struct + KRBD bool + Keyring *string + Monitors []string + Namespace string + Pool string + Username string + type ConfigStorageSMB struct + Domain string + Password *string + Preallocation *string + Server string + Share string + Username string + Version *string + func (smb *ConfigStorageSMB) SetDefaults() + type ConfigStorageZFS struct + Blocksize *string + Pool string + Thinprovision bool + func (zfs *ConfigStorageZFS) SetDefaults() + type ConfigStorageZFSoverISCSI struct + Blocksize *string + Comstar *ConfigStorageZFSoverISCSI_Comstar + ISCSIprovider string + Istgt *ConfigStorageZFSoverISCSI_istgt + LIO *ConfigStorageZFSoverISCSI_LIO + Pool string + Portal string + Target string + Thinprovision bool + func (zfsoveriscsi *ConfigStorageZFSoverISCSI) RemapFromAPI() + func (zfsoveriscsi *ConfigStorageZFSoverISCSI) RemapToAPI() + func (zfsoveriscsi *ConfigStorageZFSoverISCSI) SetDefaults() + type ConfigStorageZFSoverISCSI_Comstar struct + HostGroup string + TargetGroup string + Writecache bool + type ConfigStorageZFSoverISCSI_LIO struct + TargetPortalGroup string + type ConfigStorageZFSoverISCSI_istgt struct + Writecache bool + type ConfigUser struct + Comment string + Email string + Enable bool + Expire uint + FirstName string + Groups *[]GroupName + Keys string + LastName string + Password UserPassword + User UserID + func NewConfigUserFromApi(userId UserID, client *Client) (*ConfigUser, error) + func NewConfigUserFromJson(input []byte) (config *ConfigUser, err error) + func (config *ConfigUser) SetUser(userId UserID, password UserPassword, client *Client) (err error) + func (config *ConfigUser) UpdateUser(client *Client) (err error) + func (config ConfigUser) CreateApiToken(client *Client, token ApiToken) (value string, err error) + func (config ConfigUser) CreateUser(client *Client) (err error) + func (config ConfigUser) DeleteApiToken(client *Client, token ApiToken) (err error) + func (config ConfigUser) DeleteUser(client *Client) (err error) + func (config ConfigUser) ListApiTokens(client *Client) (tokens *[]ApiToken, err error) + func (config ConfigUser) UpdateApiToken(client *Client, token ApiToken) (err error) + func (config ConfigUser) UpdateUserPassword(client *Client) (err error) + func (config ConfigUser) Validate() (err error) + type ContentType string + const ContentType_Backup + const ContentType_Container + const ContentType_DiskImage + const ContentType_Iso + const ContentType_Snippets + const ContentType_Template + func (c ContentType) Validate() (err error) + type Content_File struct + ContentType ContentType + FilePath string + Storage string + func (c Content_File) Validate() (err error) + type Content_FileProperties struct + CreationTime time.Time + Format string + Name string + Size uint + type GroupName string + func (group GroupName) AddUsersToGroup(members *[]UserID, client *Client) error + func (group GroupName) CheckExistence(client *Client) (bool, error) + func (group GroupName) Delete(client *Client) (err error) + func (group GroupName) RemoveAllUsersFromGroup(client *Client) (err error) + func (group GroupName) RemoveUsersFromGroup(members *[]UserID, client *Client) (err error) + func (group GroupName) SetMembers(members *[]UserID, client *Client) (err error) + func (group GroupName) Validate() error + type GuestResource struct + CpuCores uint + CpuUsage float64 + DiskReadTotal uint + DiskSizeInBytes uint + DiskUsedInBytes uint + DiskWriteTotal uint + HaState string + Id uint + MemoryTotalInBytes uint + MemoryUsedInBytes uint + Name string + NetworkIn uint + NetworkOut uint + Node string + Pool string + Status string + Tags []string + Template bool + Type GuestType + UptimeInSeconds uint + func ListGuests(client *Client) ([]GuestResource, error) + type GuestType string + const GuestLXC + const GuestQemu + type HAGroup struct + Comment string + Group string + NoFailback bool + Nodes []string + Restricted bool + Type string + type IpconfigMap map[int]interface + type IsoFile struct + File string + Size string + Storage string + func (iso IsoFile) Validate() error + type QemuCdRom struct + Iso *IsoFile + Passthrough bool + func (cdRom QemuCdRom) Validate() error + type QemuCloudInitDisk struct + Format QemuDiskFormat + Storage string + func (cloudInit QemuCloudInitDisk) Validate() error + type QemuDevice map[string]interface + func ParseConf(kvString string, confSeparator string, subConfSeparator string, ...) QemuDevice + func ParseLxcDisk(diskStr string) QemuDevice + func ParsePMConf(kvString string, implicitFirstKey string) QemuDevice + type QemuDeviceParam []string + type QemuDevices map[int]map[string]interface + type QemuDiskAsyncIO string + const QemuDiskAsyncIO_IOuring + const QemuDiskAsyncIO_Native + const QemuDiskAsyncIO_Threads + func (QemuDiskAsyncIO) Error() error + func (asyncIO QemuDiskAsyncIO) Validate() error + type QemuDiskBandwidth struct + Iops QemuDiskBandwidthIops + MBps QemuDiskBandwidthMBps + func (bandwidth QemuDiskBandwidth) Validate() error + type QemuDiskBandwidthIops struct + ReadLimit QemuDiskBandwidthIopsLimit + WriteLimit QemuDiskBandwidthIopsLimit + func (iops QemuDiskBandwidthIops) Validate() error + type QemuDiskBandwidthIopsLimit struct + Burst QemuDiskBandwidthIopsLimitBurst + BurstDuration uint + Concurrent QemuDiskBandwidthIopsLimitConcurrent + func (limit QemuDiskBandwidthIopsLimit) Validate() (err error) + type QemuDiskBandwidthIopsLimitBurst uint + func (limit QemuDiskBandwidthIopsLimitBurst) Validate() error + type QemuDiskBandwidthIopsLimitConcurrent uint + func (limit QemuDiskBandwidthIopsLimitConcurrent) Validate() error + type QemuDiskBandwidthMBps struct + ReadLimit QemuDiskBandwidthMBpsLimit + WriteLimit QemuDiskBandwidthMBpsLimit + func (data QemuDiskBandwidthMBps) Validate() error + type QemuDiskBandwidthMBpsLimit struct + Burst QemuDiskBandwidthMBpsLimitBurst + Concurrent QemuDiskBandwidthMBpsLimitConcurrent + func (limit QemuDiskBandwidthMBpsLimit) Validate() (err error) + type QemuDiskBandwidthMBpsLimitBurst float32 + func (limit QemuDiskBandwidthMBpsLimitBurst) Validate() error + type QemuDiskBandwidthMBpsLimitConcurrent float32 + func (limit QemuDiskBandwidthMBpsLimitConcurrent) Validate() error + type QemuDiskCache string + const QemuDiskCache_DirectSync + const QemuDiskCache_None + const QemuDiskCache_Unsafe + const QemuDiskCache_WriteBack + const QemuDiskCache_WriteThrough + func (QemuDiskCache) Error() error + func (cache QemuDiskCache) Validate() error + type QemuDiskFormat string + const QemuDiskFormat_Cloop + const QemuDiskFormat_Cow + const QemuDiskFormat_Qcow + const QemuDiskFormat_Qcow2 + const QemuDiskFormat_Qed + const QemuDiskFormat_Raw + const QemuDiskFormat_Vmdk + func (QemuDiskFormat) Error() error + func (format QemuDiskFormat) Validate() error + type QemuDiskId string + func (id QemuDiskId) Validate() error + type QemuDiskSerial string + func (serial QemuDiskSerial) Validate() error + type QemuIdeDisk struct + AsyncIO QemuDiskAsyncIO + Backup bool + Bandwidth QemuDiskBandwidth + Cache QemuDiskCache + Discard bool + EmulateSSD bool + Format QemuDiskFormat + Id uint + LinkedDiskId *uint + Replicate bool + Serial QemuDiskSerial + Size uint + Storage string + func (disk QemuIdeDisk) Validate() error + type QemuIdeDisks struct + Disk_0 *QemuIdeStorage + Disk_1 *QemuIdeStorage + Disk_2 *QemuIdeStorage + Disk_3 *QemuIdeStorage + func (disks QemuIdeDisks) Validate() (err error) + type QemuIdePassthrough struct + AsyncIO QemuDiskAsyncIO + Backup bool + Bandwidth QemuDiskBandwidth + Cache QemuDiskCache + Discard bool + EmulateSSD bool + File string + Replicate bool + Serial QemuDiskSerial + Size uint + func (passthrough QemuIdePassthrough) Validate() error + type QemuIdeStorage struct + CdRom *QemuCdRom + CloudInit *QemuCloudInitDisk + Disk *QemuIdeDisk + Passthrough *QemuIdePassthrough + func (storage QemuIdeStorage) Validate() (err error) + type QemuSataDisk struct + AsyncIO QemuDiskAsyncIO + Backup bool + Bandwidth QemuDiskBandwidth + Cache QemuDiskCache + Discard bool + EmulateSSD bool + Format QemuDiskFormat + Id uint + LinkedDiskId *uint + Replicate bool + Serial QemuDiskSerial + Size uint + Storage string + func (disk QemuSataDisk) Validate() error + type QemuSataDisks struct + Disk_0 *QemuSataStorage + Disk_1 *QemuSataStorage + Disk_2 *QemuSataStorage + Disk_3 *QemuSataStorage + Disk_4 *QemuSataStorage + Disk_5 *QemuSataStorage + func (disks QemuSataDisks) Validate() (err error) + type QemuSataPassthrough struct + AsyncIO QemuDiskAsyncIO + Backup bool + Bandwidth QemuDiskBandwidth + Cache QemuDiskCache + Discard bool + EmulateSSD bool + File string + Replicate bool + Serial QemuDiskSerial + Size uint + func (passthrough QemuSataPassthrough) Validate() error + type QemuSataStorage struct + CdRom *QemuCdRom + CloudInit *QemuCloudInitDisk + Disk *QemuSataDisk + Passthrough *QemuSataPassthrough + func (storage QemuSataStorage) Validate() (err error) + type QemuScsiDisk struct + AsyncIO QemuDiskAsyncIO + Backup bool + Bandwidth QemuDiskBandwidth + Cache QemuDiskCache + Discard bool + EmulateSSD bool + Format QemuDiskFormat + IOThread bool + Id uint + LinkedDiskId *uint + ReadOnly bool + Replicate bool + Serial QemuDiskSerial + Size uint + Storage string + func (disk QemuScsiDisk) Validate() error + type QemuScsiDisks struct + Disk_0 *QemuScsiStorage + Disk_1 *QemuScsiStorage + Disk_10 *QemuScsiStorage + Disk_11 *QemuScsiStorage + Disk_12 *QemuScsiStorage + Disk_13 *QemuScsiStorage + Disk_14 *QemuScsiStorage + Disk_15 *QemuScsiStorage + Disk_16 *QemuScsiStorage + Disk_17 *QemuScsiStorage + Disk_18 *QemuScsiStorage + Disk_19 *QemuScsiStorage + Disk_2 *QemuScsiStorage + Disk_20 *QemuScsiStorage + Disk_21 *QemuScsiStorage + Disk_22 *QemuScsiStorage + Disk_23 *QemuScsiStorage + Disk_24 *QemuScsiStorage + Disk_25 *QemuScsiStorage + Disk_26 *QemuScsiStorage + Disk_27 *QemuScsiStorage + Disk_28 *QemuScsiStorage + Disk_29 *QemuScsiStorage + Disk_3 *QemuScsiStorage + Disk_30 *QemuScsiStorage + Disk_4 *QemuScsiStorage + Disk_5 *QemuScsiStorage + Disk_6 *QemuScsiStorage + Disk_7 *QemuScsiStorage + Disk_8 *QemuScsiStorage + Disk_9 *QemuScsiStorage + func (disks QemuScsiDisks) Validate() (err error) + type QemuScsiPassthrough struct + AsyncIO QemuDiskAsyncIO + Backup bool + Bandwidth QemuDiskBandwidth + Cache QemuDiskCache + Discard bool + EmulateSSD bool + File string + IOThread bool + ReadOnly bool + Replicate bool + Serial QemuDiskSerial + Size uint + func (passthrough QemuScsiPassthrough) Validate() error + type QemuScsiStorage struct + CdRom *QemuCdRom + CloudInit *QemuCloudInitDisk + Disk *QemuScsiDisk + Passthrough *QemuScsiPassthrough + func (storage QemuScsiStorage) Validate() (err error) + type QemuStorages struct + Ide *QemuIdeDisks + Sata *QemuSataDisks + Scsi *QemuScsiDisks + VirtIO *QemuVirtIODisks + func (storages QemuStorages) Validate() (err error) + type QemuVirtIODisk struct + AsyncIO QemuDiskAsyncIO + Backup bool + Bandwidth QemuDiskBandwidth + Cache QemuDiskCache + Discard bool + Format QemuDiskFormat + IOThread bool + Id uint + LinkedDiskId *uint + ReadOnly bool + Replicate bool + Serial QemuDiskSerial + Size uint + Storage string + func (disk QemuVirtIODisk) Validate() error + type QemuVirtIODisks struct + Disk_0 *QemuVirtIOStorage + Disk_1 *QemuVirtIOStorage + Disk_10 *QemuVirtIOStorage + Disk_11 *QemuVirtIOStorage + Disk_12 *QemuVirtIOStorage + Disk_13 *QemuVirtIOStorage + Disk_14 *QemuVirtIOStorage + Disk_15 *QemuVirtIOStorage + Disk_2 *QemuVirtIOStorage + Disk_3 *QemuVirtIOStorage + Disk_4 *QemuVirtIOStorage + Disk_5 *QemuVirtIOStorage + Disk_6 *QemuVirtIOStorage + Disk_7 *QemuVirtIOStorage + Disk_8 *QemuVirtIOStorage + Disk_9 *QemuVirtIOStorage + func (disks QemuVirtIODisks) Validate() (err error) + type QemuVirtIOPassthrough struct + AsyncIO QemuDiskAsyncIO + Backup bool + Bandwidth QemuDiskBandwidth + Cache QemuDiskCache + Discard bool + File string + IOThread bool + ReadOnly bool + Replicate bool + Serial QemuDiskSerial + Size uint + func (passthrough QemuVirtIOPassthrough) Validate() error + type QemuVirtIOStorage struct + CdRom *QemuCdRom + CloudInit *QemuCloudInitDisk + Disk *QemuVirtIODisk + Passthrough *QemuVirtIOPassthrough + func (storage QemuVirtIOStorage) Validate() (err error) + type Response struct + Body []byte + Resp *http.Response + type Session struct + ApiUrl string + AuthTicket string + AuthToken string + CsrfToken string + Headers http.Header + func NewSession(apiUrl string, hclient *http.Client, proxyString string, tls *tls.Config) (session *Session, err error) + func (s *Session) Delete(url string, params *url.Values, headers *http.Header) (resp *http.Response, err error) + func (s *Session) Do(req *http.Request) (*http.Response, error) + func (s *Session) Get(url string, params *url.Values, headers *http.Header) (resp *http.Response, err error) + func (s *Session) GetJSON(url string, params *url.Values, headers *http.Header, ...) (resp *http.Response, err error) + func (s *Session) Head(url string, params *url.Values, headers *http.Header) (resp *http.Response, err error) + func (s *Session) Login(username string, password string, otp string) (err error) + func (s *Session) NewRequest(method, url string, headers *http.Header, body io.Reader) (req *http.Request, err error) + func (s *Session) Post(url string, params *url.Values, headers *http.Header, body *[]byte) (resp *http.Response, err error) + func (s *Session) PostJSON(url string, params *url.Values, headers *http.Header, body interface{}, ...) (resp *http.Response, err error) + func (s *Session) Put(url string, params *url.Values, headers *http.Header, body *[]byte) (resp *http.Response, err error) + func (s *Session) Request(method string, url string, params *url.Values, headers *http.Header, ...) (resp *http.Response, err error) + func (s *Session) RequestJSON(method string, url string, params *url.Values, headers *http.Header, ...) (resp *http.Response, err error) + func (s *Session) SetAPIToken(userID, token string) + type Snapshot struct + Children []*Snapshot + Description string + Name string + Parent string + SnapTime uint + VmState bool + type TemplateItem struct + Architecture string + Description string + Headline string + InfoPage string + Location string + ManageURL string + OS string + Package string + SHA512Checksum string + Section string + Source string + Template string + Type string + Version string + type UserID struct + Name string + Realm string + func NewUserID(userId string) (id UserID, err error) + func (id UserID) ToString() string + func (id UserID) Validate() error + type UserPassword string + func (password UserPassword) Validate() error + type VmRef struct + func NewVmRef(vmId int) (vmr *VmRef) + func (vmr *VmRef) GetVmType() string + func (vmr *VmRef) HaGroup() string + func (vmr *VmRef) HaState() string + func (vmr *VmRef) Node() string + func (vmr *VmRef) Pool() string + func (vmr *VmRef) SetNode(node string) + func (vmr *VmRef) SetPool(pool string) + func (vmr *VmRef) SetVmType(vmType string) + func (vmr *VmRef) VmId() int