Documentation ¶
Index ¶
- type Common
- type ConfigVmParamsParameter
- type CreateVmnetParameter
- type DaemonState
- type DhcpConfig
- type DnsConfig
- type ErrorModel
- type InlineResponse200
- type MacToIpParameter
- type MactoIp
- type MactoIps
- type Network
- type Networks
- type NicDevice
- type NicDeviceParameter
- type NicDevices
- type NicIpStack
- type NicIpStackAll
- type Portforward
- type PortforwardGuest
- type PortforwardParameter
- type Portforwards
- type RouteEntry
- type SharedFolder
- type SharedFolderParameter
- type SharedFolders
- type VmApplianceView
- type VmCloneParameter
- type VmConnectedDevice
- type VmConnectedDeviceList
- type VmGuestIsolation
- type VmInformation
- type VmParameter
- type VmPowerOperation
- type VmPowerState
- type VmRegisterParameter
- type VmRegistrationInformation
- type VmRemoteVnc
- type VmRestrictionsInformation
- type VmUsbDevice
- type VmUsbList
- type Vmcpu
- type Vmid
- type WinsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigVmParamsParameter ¶
type CreateVmnetParameter ¶
type DaemonState ¶
type DaemonState string
const ( STATE_ON DaemonState = "on" STATE_OFF DaemonState = "off" )
List of DaemonState
type DhcpConfig ¶
DHCP configuration
type DnsConfig ¶
type DnsConfig struct { Common Hostname string `json:"hostname,omitempty"` Domainname string `json:"domainname,omitempty"` Server []string `json:"server,omitempty"` Search []string `json:"search,omitempty"` }
DNS configuration
type ErrorModel ¶
type InlineResponse200 ¶
type MacToIpParameter ¶
type MactoIp ¶
type MactoIp struct { Common Vmnet string `json:"vmnet"` Mac string `json:"mac"` Ip string `json:"ip"` }
The MAC to IP setting
type MactoIps ¶
type MactoIps struct { Common Num int `json:"num"` // The list of MAC to IP settings Mactoips []MactoIp `json:"mactoips,omitempty"` }
The list of MAC to IP settings
type Network ¶
type Network struct { Common // Name of virtual network Name string `json:"name"` Type string `json:"type"` Dhcp string `json:"dhcp"` Subnet string `json:"subnet"` Mask string `json:"mask"` }
The virtual network
type Networks ¶
type Networks struct { Common Num int `json:"num"` // The list of virtual networks Vmnets []Network `json:"vmnets"` }
The list of virtual networks
type NicDeviceParameter ¶
type NicDevices ¶
type NicDevices struct { Common Num int `json:"num"` // The network adapter added to this VM Nics []NicDevice `json:"nics"` }
The list of network adapters
type NicIpStack ¶
type NicIpStack struct { Common // Mac address of the interface Mac string `json:"mac"` // IP address(es) of the interface (CIDR) Ip []string `json:"ip,omitempty"` // DNS configuration of the interface Dns *DnsConfig `json:"dns,omitempty"` // WINS configuration of the interface Wins *WinsConfig `json:"wins,omitempty"` // DHCPv4 configuration of the interface Dhcp4 *DhcpConfig `json:"dhcp4,omitempty"` // DHCPv6 configuration of the interface Dhcp6 *DhcpConfig `json:"dhcp6,omitempty"` }
Information about a NIC
type NicIpStackAll ¶
type NicIpStackAll struct { Common Nics []NicIpStack `json:"nics,omitempty"` Routes []RouteEntry `json:"routes,omitempty"` // Global DNS configuration Dns *DnsConfig `json:"dns,omitempty"` // Global WINS configuration Wins *WinsConfig `json:"wins,omitempty"` // Global DHCPv4 configuration Dhcpv4 *DhcpConfig `json:"dhcpv4,omitempty"` // Global DHCPv6 configuration Dhcpv6 *DhcpConfig `json:"dhcpv6,omitempty"` }
Information about all NICs
type Portforward ¶
type Portforward struct { Common Port int `json:"port"` Protocol string `json:"protocol"` Desc string `json:"desc"` Guest *PortforwardGuest `json:"guest"` }
The port forwarding
type PortforwardGuest ¶
type PortforwardParameter ¶
type Portforwards ¶
type Portforwards struct { Common Num int `json:"num"` // The list of port forwardings PortForwardings []Portforward `json:"port_forwardings"` }
The list of port forwarding
type RouteEntry ¶
type RouteEntry struct { Common Dest string `json:"dest"` Prefix int `json:"prefix"` Nexthop string `json:"nexthop,omitempty"` Interface int `json:"interface"` Type int `json:"type"` Metric int `json:"metric"` }
Routing entry
type SharedFolder ¶
type SharedFolderParameter ¶
type VmApplianceView ¶
type VmCloneParameter ¶
type VmConnectedDevice ¶
type VmConnectedDeviceList ¶
type VmConnectedDeviceList struct { Common Num int `json:"num,omitempty"` Devices []VmConnectedDevice `json:"devices,omitempty"` }
type VmGuestIsolation ¶
type VmInformation ¶
type VmParameter ¶
type VmPowerOperation ¶
type VmPowerOperation string
const ( VM_ON VmPowerOperation = "on" VM_OFF VmPowerOperation = "off" VM_SHUTDOWN VmPowerOperation = "shutdown" VM_SUSPEND VmPowerOperation = "suspend" VM_PAUSE VmPowerOperation = "pause" VM_UNPAUSE VmPowerOperation = "unpause" )
List of VMPowerOperation
type VmPowerState ¶
type VmRegisterParameter ¶
type VmRemoteVnc ¶
type VmRestrictionsInformation ¶
type VmRestrictionsInformation struct { Common Id string `json:"id"` // The organization manages the VM ManagedOrg string `json:"managedOrg,omitempty"` Integrityconstraint string `json:"integrityconstraint,omitempty"` Cpu *Vmcpu `json:"cpu,omitempty"` Memory int `json:"memory,omitempty"` ApplianceView *VmApplianceView `json:"applianceView,omitempty"` CddvdList *VmConnectedDeviceList `json:"cddvdList,omitempty"` FloopyList *VmConnectedDeviceList `json:"floopyList,omitempty"` FirewareType int `json:"firewareType,omitempty"` GuestIsolation *VmGuestIsolation `json:"guestIsolation,omitempty"` Niclist *NicDevices `json:"niclist,omitempty"` ParallelPortList *VmConnectedDeviceList `json:"parallelPortList,omitempty"` SerialPortList *VmConnectedDeviceList `json:"serialPortList,omitempty"` UsbList *VmUsbList `json:"usbList,omitempty"` RemoteVNC *VmRemoteVnc `json:"remoteVNC,omitempty"` }
type VmUsbDevice ¶
type VmUsbList ¶
type VmUsbList struct { Common Num int `json:"num,omitempty"` UsbDevices []VmUsbDevice `json:"usbDevices,omitempty"` }
type WinsConfig ¶
type WinsConfig struct { Common Primary string `json:"primary"` Secondary string `json:"secondary"` }
WINS configuration
Source Files ¶
- common.go
- config_vm_params_parameter.go
- create_vmnet_parameter.go
- daemon_state.go
- dhcp_config.go
- dns_config.go
- error_model.go
- inline_response_200.go
- mac_to_ip_parameter.go
- macto_ip.go
- macto_ips.go
- network.go
- networks.go
- nic_device.go
- nic_device_parameter.go
- nic_devices.go
- nic_ip_stack.go
- nic_ip_stack_all.go
- portforward.go
- portforward_guest.go
- portforward_parameter.go
- portforwards.go
- route_entry.go
- shared_folder.go
- shared_folder_parameter.go
- shared_folders.go
- vm_appliance_view.go
- vm_clone_parameter.go
- vm_connected_device.go
- vm_connected_device_list.go
- vm_guest_isolation.go
- vm_information.go
- vm_parameter.go
- vm_power_operation.go
- vm_power_state.go
- vm_register_parameter.go
- vm_registration_information.go
- vm_remote_vnc.go
- vm_restrictions_information.go
- vm_usb_device.go
- vm_usb_list.go
- vmcpu.go
- vmid.go
- wins_config.go
Click to show internal directories.
Click to hide internal directories.