Documentation
¶
Overview ¶
Package vcenter contains vCenter object types.
Index ¶
Constants ¶
View Source
const ( // ClusterDefaultResourcePoolName is the default resource pool name for a cluster. ClusterDefaultResourcePoolName = "Resources" // DefaultDomain is the default vCenter domain. DefaultDomain = "VSPHERE.LOCAL" )
View Source
const ( // DatastoreInventoryPrefix is the prefix for datastore inventory. // Replacements: datacenter name. DatastoreInventoryPrefix = "/%s/datastore/" // HostInventoryPath is the path for cluster or host system inventory. // Replacements: datacenter name, cluster or host system name. HostInventoryPath = "/%s/host/%s" // HostInventoryPrefix is the prefix for host inventory. // Replacements: datacenter name. HostInventoryPrefix = "/%s/host/" // HostInventoryGlob is the path for listing all host inventory in a // datacenter; including host systems and clusters. // Replacements: datacenter name. HostInventoryGlob = "/%s/host/*" // HostChildInventoryPath is the path for host system or resource pool inventory. // Replacements: datacenter name, cluster, host system, or resource pool name. HostChildInventoryPath = "/%s/host/%s/%s" // NetworkInventoryPath is the path for network inventory. // Replacements: datacenter name, network name. NetworkInventoryPath = "/%s/network/%s" // NetworkInventoryPrefix is the prefix for network inventory. // Replacements: datacenter name. NetworkInventoryPrefix = "/%s/network/" // ResourcePoolInventoryPath is the path for resource pool inventory. // Replacements: datacenter name, cluster name, resource pool name. ResourcePoolInventoryPath = "/%s/host/%s/Resources/%s" // ResourcePoolInventoryGlob is the path for listing all resource pools // in a cluster. // Replacements: datacenter name, cluster name. ResourcePoolInventoryGlob = "/%s/host/%s/Resources/*" // ResourcePoolChildInventoryGlob is the path for listing all child inventory // in a resource pool. // Replacements: datacenter name, cluster name, resource pool name. ResourcePoolChildInventoryGlob = "/%s/host/%s/Resources/%s/*" // VMFolderInventoryPath is the path for VM folder inventory. // Replacements: datacenter name, vm folder name. VMFolderInventoryPath = "/%s/vm/%s" // VMFolderInventoryPrefix is the prefix for VM folder inventory. // Replacements: datacenter name. VMFolderInventoryPrefix = "/%s/vm/" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// Insecure controls whether to validate the vCenter server's certificate.
Insecure bool `json:"insecure" yaml:"insecure"`
// Password is the vCenter password.
Password string `json:"password" yaml:"password"`
// Username is the vCenter username.
Username string `json:"username" yaml:"username"`
// Host is the vCenter URL.
Host string `json:"host" yaml:"host"`
}
Account contains vCenter account details.
type AdditionalDisk ¶
type AdditionalDisk struct {
Name string
Device string
Capacity string
Used string
Available string
Usage string
}
AdditionalDisk defines an additional disk.
type HostDateInfo ¶
type HostDateInfo struct {
types.HostDateTimeInfo
HostName string
NTPServers []string
Service *types.HostService
Current *time.Time
ClientStatus string
ServiceStatus string
}
HostDateInfo defines date information for a vCenter host system.
func (*HostDateInfo) Servers ¶
func (i *HostDateInfo) Servers() []string
Servers returns a slice of NTP servers for a vCenter host system.
type HostSystem ¶
HostSystem defines a vCenter host system.
type Metrics ¶
type Metrics struct {
CPUCores string
CPUUsage string
MemoryBytes string
MemoryUsage string
DiskUsage string
DiskProvisioned string
}
Metrics defines the VM metrics.
Click to show internal directories.
Click to hide internal directories.