Documentation ¶
Index ¶
- type Cluster
- type ClusterMetadata
- type ClusterResponse
- type DiskEntity
- type DiskMetadata
- type DiskResponse
- type HostEntity
- type HostMetadata
- type HostResponse
- type Nutanix
- type NutanixMetadata
- type RackableUnits
- type RequestParams
- type StorageEntity
- type StorageResponse
- type VirtualDiskEntity
- type VirtualDiskMetadata
- type VirtualDiskResponse
- type VmEntity
- type VmMetadata
- type VmResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Id string `json:"id"` Uuid string `json:"uuid"` Name string `json:"name"` NumNodes int `json:"num_nodes"` SsdPinningPercentageLimit int `json:"ssd_pinning_percentage_limit"` RackableUnits []RackableUnits `json:"rackable_units"` Stats map[string]string `json:"stats"` UsageStats map[string]string `json:"usage_stats"` }
type ClusterMetadata ¶
type ClusterMetadata struct { }
type ClusterResponse ¶
type ClusterResponse struct { Metadata *ClusterMetadata Entities []Cluster }
type DiskEntity ¶
type DiskEntity struct { Id string `json:"Id"` MountPath string `json:"mount_path"` HostName string `json:"node_name"` Stats map[string]string `json:"stats"` UsageStats map[string]string `json:"usage_stats"` StorageTierName string `json:"storage_tier_name"` DiskStatus string `json:"disk_status"` Online int `json:"online"` DiskSize int64 `json:"disk_size"` Location int `json:"location"` }
type DiskMetadata ¶
type DiskResponse ¶
type DiskResponse struct { Metadata *DiskMetadata Entities []*DiskEntity }
type HostEntity ¶
type HostEntity struct { Name string `json:"name"` CpuFrequency int64 `json:"cpu_frequency_in_hz"` CpuCapacity int64 `json:"cpu_capacity_in_hz"` MemoryCapacity int64 `json:"memory_capacity_in_bytes"` NumCpuCores int `json:"num_cpu_cores` NumVms int `json:"num_vms"` BootTime int64 `json:"boot_time_in_usecs"` Stats map[string]string `json:"stats"` UsageStats map[string]string `json:"usage_stats"` Serial string `json:"serial"` ClusterName 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) GetDisks ¶
func (n *Nutanix) GetDisks() []*DiskEntity
func (*Nutanix) GetHosts ¶
func (n *Nutanix) GetHosts() []HostEntity
func (*Nutanix) GetStorageContainers ¶
func (n *Nutanix) GetStorageContainers() []StorageEntity
func (*Nutanix) GetVirtualDisks ¶
func (n *Nutanix) GetVirtualDisks() []*VirtualDiskEntity
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 StorageResponse ¶
type StorageResponse struct { Metadata *NutanixMetadata Entities []StorageEntity }
type VirtualDiskEntity ¶
type VirtualDiskMetadata ¶
type VirtualDiskResponse ¶
type VirtualDiskResponse struct { Metadata *VirtualDiskMetadata Entities []*VirtualDiskEntity }
type VmEntity ¶
type VmEntity struct { Id string `json:"vmId"` Name string `json:"vmName"` HostName string `json:"hostName"` Stats map[string]string `json:"stats"` UsageStats map[string]string `json:"usage_stats"` NumVCpus float64 `json:"numVCpus"` MemoryMb float64 `json:"memoryCapacityInBytes"` MemoryCapMb float64 `json:"memoryReservedCapacityInBytes"` DiskMb float64 `json:"diskCapacityInBytes"` PowerState string `json:"powerState"` ClusterName string }
type VmMetadata ¶
type VmResponse ¶
type VmResponse struct { Metadata *VmMetadata Entities []*VmEntity }
Click to show internal directories.
Click to hide internal directories.