Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HypervisorInnerRespV2 ¶
type HypervisorInnerRespV2 struct { Id int `mapstructure:"id"` CurrentWorkload int `mapstructure:"current_workload"` DiskAvailableLeast int `mapstructure:"disk_available_least"` FreeDiskGB int `mapstructure:"free_disk_gb"` FreeRamMB int `mapstructure:"free_ram_mb"` HypervisorVersion int `mapstructure:"hypervisor_version"` LocalGB int `mapstructure:"local_gb"` LocalGBUsed int `mapstructure:"local_gb_used"` MemoryMB int `mapstructure:"memory_mb"` MemoryMBUsed int `mapstructure:"memory_mb_used"` RunningVMs int `mapstructure:"running_vms"` VCPUs int `mapstructure:"vcpus"` VCPUsUsed int `mapstructure:"vcpus_used"` }
func (*HypervisorInnerRespV2) ToHypervisorStatistics ¶
func (self *HypervisorInnerRespV2) ToHypervisorStatistics() nova.HypervisorStatistics
Converts internal representation used for deserialization to common API
type HypervisorRespV2 ¶
type HypervisorRespV2 struct {
Hypervisors []HypervisorInnerRespV2 `mapstructure:"hypervisors"`
}
type LimitsAbsoluteRespV2 ¶
type LimitsAbsoluteRespV2 struct { MaxServerMeta int `mapstructure:"maxServerMeta"` MaxPersonality int `mapstructure:"maxPersonality"` TotalServerGroupsUsed int `mapstructure:"totalServerGroupsUsed"` MaxImageMeta int `mapstructure:"maxImageMeta"` MaxPersonalitySize int `mapstructure:"maxPersonalitySize"` MaxServerGroups int `mapstructure:"maxServerGroups"` MaxSecurityGroupRules int `mapstructure:"maxSecurityGroupRules"` MaxTotalKeypairs int `mapstructure:"maxTotalKeypairs"` TotalCoresUsed int `mapstructure:"totalCoresUsed"` TotalRAMUsed int `mapstructure:"totalRAMUsed"` TotalInstancesUsed int `mapstructure:"totalInstancesUsed"` MaxSecurityGroups int `mapstructure:"maxSecurityGroups"` TotalFloatingIPsUsed int `mapstructure:"totalFloatingIpsUsed"` MaxTotalCores int `mapstructure:"maxTotalCores"` TotalSecurityGroupsUsed int `mapstructure:"totalSecurityGroupsUsed"` MaxTotalFloatingIPs int `mapstructure:"maxTotalFloatingIps"` MaxTotalInstances int `mapstructure:"maxTotalInstances"` MaxTotalRamSize int `mapstructure:"maxTotalRAMSize"` MaxServerGroupMembers int `mapstructure:"maxServerGroupMembers"` }
func (*LimitsAbsoluteRespV2) ToLimitsAbsolute ¶
func (self *LimitsAbsoluteRespV2) ToLimitsAbsolute() nova.LimitsAbsolute
Converts internal representation used for deserialization to common API
type LimitsLimitsRespV2 ¶
type LimitsLimitsRespV2 struct {
Absolute LimitsAbsoluteRespV2 `mapstructure:"absolute"`
}
type LimitsRespV2 ¶
type LimitsRespV2 struct {
Limits LimitsLimitsRespV2 `mapstructure:"limits"`
}
type NovaV2 ¶
type NovaV2 struct {
Client *gophercloud.ServiceClient
}
func (*NovaV2) GetHypervisorStatistics ¶
func (self *NovaV2) GetHypervisorStatistics() ([]nova.HypervisorStatistics, error)
Implements hypervisor stats retrieval, returns these stats or error if rest request failed
type QuotaRespV2 ¶
type QuotaRespV2 struct {
QuotaSet QuotaSetRespV2 `mapstructure:"quota_set"`
}
type QuotaSetRespV2 ¶
type QuotaSetRespV2 struct { Cores int `mapstructure:"cores"` FixedIps int `mapstructure:"fixed_ips"` FloatingIps int `mapstructure:"floating_ips"` Instances int `mapstructure:"instances"` KeyPairs int `mapstructure:"key_pairs"` Ram int `mapstructure:"ram"` SecurityGroups int `mapstructure:"security_groups"` }
func (*QuotaSetRespV2) ToQuotaSet ¶
func (self *QuotaSetRespV2) ToQuotaSet() nova.QuotaSet
Converts internal representation used for deserialization to common API
Click to show internal directories.
Click to hide internal directories.