nutanix

package
v0.0.0-...-b6c860c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 DiskMetadata struct {
	GrandTotalEntites float64 `json:"grand_total_entities"`
	TotalEntites      float64 `json:"total_entities"`
	Count             float64 `json:"count"`
}

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 NewNutanix

func NewNutanix(url string, username string, password string) *Nutanix

func (*Nutanix) GetCluster

func (n *Nutanix) GetCluster() []Cluster

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

func (*Nutanix) GetVms

func (n *Nutanix) GetVms() []*VmEntity

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 RackableUnits struct {
	Id               int      `json:"id"`
	RackableUnitUuid string   `json:"rackable_unit_uuid"`
	Model            string   `json:"model"`
	ModelName        string   `json:"model_name"`
	Serial           string   `json:"serial"`
	Positions        []string `json:"positions`
	Nodes            []int    `json:"nodes"`
	NodeUUids        []string `json:"node_uuids"`
}

type RequestParams

type RequestParams struct {
	// contains filtered or unexported fields
}

type StorageEntity

type StorageEntity struct {
	Id          string            `json:"storage_container_uuid"`
	Name        string            `json:"name"`
	MaxCapacity uint64            `json:"max_capacity"`
	Stats       map[string]string `json:"stats"`
	UsageStats  map[string]string `json:"usage_stats"`
}

type StorageResponse

type StorageResponse struct {
	Metadata *NutanixMetadata
	Entities []StorageEntity
}

type VirtualDiskEntity

type VirtualDiskEntity struct {
	Id                 string            `json:"virtual_disk_id"`
	HostName           string            `json:"attached_vmname"`
	Stats              map[string]string `json:"stats"`
	DiskMb             float64           `json:"disk_capacity_in_bytes"`
	NutanixNFSFilePath string            `json:"nutanix_nfsfile_path"`
}

type VirtualDiskMetadata

type VirtualDiskMetadata struct {
	GrandTotalEntites float64 `json:"grand_total_entities"`
	TotalEntites      float64 `json:"total_entities"`
	Count             float64 `json:"count"`
}

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 VmMetadata struct {
	GrandTotalEntites float64 `json:"grand_total_entities"`
	TotalEntites      float64 `json:"total_entities"`
	Count             float64 `json:"count"`
}

type VmResponse

type VmResponse struct {
	Metadata *VmMetadata
	Entities []*VmEntity
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL