Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostEntity ¶
type HostEntity struct { Name string CpuFrequency float64 `json:"cpu_frequency_in_hz"` CpuCapacity float64 `json:"cpu_capacity_in_hz"` MemoryCapacity float64 `json:"memory_capacity_in_bytes"` NumVms int `json:"num_vms"` BootTime float64 `json:"boot_time_in_usecs"` Stats map[string]string UsageStats map[string]string }
type HostMetadata ¶
type HostMetadata struct { }
type HostResponse ¶
type HostResponse struct { Metadata *HostMetadata Entities []HostEntity }
type Nutanix ¶
type Nutanix struct {
// contains filtered or unexported fields
}
func (*Nutanix) GetCluster ¶
func (*Nutanix) GetHosts ¶
func (n *Nutanix) GetHosts() []HostEntity
func (*Nutanix) GetStorageContainers ¶
func (n *Nutanix) GetStorageContainers() []StorageEntity
type NutanixMetadata ¶
type NutanixMetadata struct { GrandTotalEntities uint `json:"grand_total_entities"` TotalEntities uint `json:"total_entities"` FilterCriteria string `json:"filter_criteria"` SortCriteria string `json:"sort_criteria"` Page uint `json:"page"` Count uint `json:"count"` StartIndex uint `json:"start_index"` EndIndex uint `json:"end_index"` }
type RackableUnits ¶
type RequestParams ¶
type RequestParams struct {
// contains filtered or unexported fields
}
type StorageEntity ¶
type StorageEntity struct { Id string Name string MaxCapacity uint64 `json:"max_capacity"` // TotalExplicitReservedCapacity uint64 `json:"total_explicit_reserved_capacity"` // TotalImplicitReservedCapacity uint64 `json:"total_implicit_reserved_capacity"` // AdvertisedCapacity uint64 `json:"advertised_capacity"` // ReplicationFactor uint `json:"replication_factor"` // OplogReplicationFactor uint `json:"oplog_replication_factor"` Stats map[string]string `json:"stats"` UsageStats map[string]string `json:"usage_stats"` }
type StorageResponse ¶
type StorageResponse struct { Metadata *NutanixMetadata Entities []StorageEntity }
type VmMetadata ¶
type VmResponse ¶
type VmResponse struct { Metadata *VmMetadata Entities []*VmEntity }
Click to show internal directories.
Click to hide internal directories.