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" // ClusterInventoryPath is the path for cluster inventory. ClusterInventoryPath = "/%s/host/%s" // DefaultDomain is the default vCenter domain. DefaultDomain = "VSPHERE.LOCAL" // HostSystemInventoryPath is the path for host system inventory. HostSystemInventoryPath = "/%s/host/%s/%s" // ResourcePoolInventoryPath is the path for resource pool inventory. ResourcePoolInventoryPath = "/%s/host/%s/Resources/%s" )
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.