Documentation ¶
Index ¶
- Constants
- Variables
- func All() []interface{}
- type About
- type Base
- type BranchNavigator
- type Cluster
- type Concern
- type DVSHost
- type Datacenter
- type Datastore
- type Device
- type Disk
- type Folder
- type Host
- type HostNetwork
- type InvalidRefError
- type ListOptions
- type Model
- type NIC
- type Network
- type PNIC
- type ParentNavigator
- type PortGroup
- type Ref
- type Switch
- type Tree
- type TreeNode
- type VM
- type VNIC
Constants ¶
View Source
const ( // Network. NetStandard = "Standard" NetDvPortGroup = "DvPortGroup" NetDvSwitch = "DvSwitch" // Cluster. ComputeResource = "ComputeResource" )
Variants.
View Source
const (
MaxDetail = base.MaxDetail
)
Variables ¶
View Source
var ( FolderKind = libref.ToKind(Folder{}) DatacenterKind = libref.ToKind(Datacenter{}) ClusterKind = libref.ToKind(Cluster{}) HostKind = libref.ToKind(Host{}) NetKind = libref.ToKind(Network{}) DsKind = libref.ToKind(Datastore{}) VmKind = libref.ToKind(VM{}) )
Kinds
View Source
var NotFound = libmodel.NotFound
Errors
Functions ¶
Types ¶
type Base ¶
type Base struct { // Managed object ID. ID string `sql:"pk"` // Variant Variant string `sql:"d0,index(variant)"` // Name Name string `sql:"d0,index(name)"` // Parent Parent Ref `sql:"d0,index(parent)"` // Revision Revision int64 `sql:"incremented,d0,index(revision)"` }
Base VMWare model.
type BranchNavigator ¶
type BranchNavigator = base.BranchNavigator
type Datacenter ¶
type Disk ¶
type Disk struct { Key int32 `json:"key"` File string `json:"file"` Datastore Ref `json:"datastore"` Capacity int64 `json:"capacity"` RDM bool `json:"rdm"` }
Virtual Disk.
type Host ¶
type Host struct { Base Cluster string `sql:"d0,index(cluster)"` Status string `sql:""` InMaintenanceMode bool `sql:""` ManagementServerIp string `sql:""` Thumbprint string `sql:""` Timezone string `sql:""` CpuSockets int16 `sql:""` CpuCores int16 `sql:""` ProductName string `sql:""` ProductVersion string `sql:""` Network HostNetwork `sql:""` Networks []Ref `sql:""` Datastores []Ref `sql:""` }
type HostNetwork ¶
type HostNetwork struct { PNICs []PNIC `json:"pNICs"` VNICs []VNIC `json:"vNICs"` PortGroups []PortGroup `json:"portGroups"` Switches []Switch `json:"switches"` }
type InvalidRefError ¶
type InvalidRefError = base.InvalidRefError
type ParentNavigator ¶
type ParentNavigator = base.ParentNavigator
type VM ¶
type VM struct { Base Folder string `sql:"d0,index(folder)"` Host string `sql:"d0,index(host)"` RevisionValidated int64 `sql:"d0,index(revisionValidated)"` PolicyVersion int `sql:"d0,index(policyVersion)"` UUID string `sql:""` Firmware string `sql:""` PowerState string `sql:""` ConnectionState string `sql:""` CpuAffinity []int32 `sql:""` CpuHotAddEnabled bool `sql:""` CpuHotRemoveEnabled bool `sql:""` MemoryHotAddEnabled bool `sql:""` FaultToleranceEnabled bool `sql:""` CpuCount int32 `sql:""` CoresPerSocket int32 `sql:""` MemoryMB int32 `sql:""` GuestName string `sql:""` GuestID string `sql:""` BalloonedMemory int32 `sql:""` IpAddress string `sql:""` NumaNodeAffinity []string `sql:""` StorageUsed int64 `sql:""` Snapshot Ref `sql:""` IsTemplate bool `sql:""` ChangeTrackingEnabled bool `sql:""` Devices []Device `sql:""` NICs []NIC `sql:""` Disks []Disk `sql:""` Networks []Ref `sql:""` Concerns []Concern `sql:""` }
Click to show internal directories.
Click to hide internal directories.