nova

package
v0.0.0-...-44326e6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(client *gophercloud.ServiceClient, request string, out interface{}) error

Get performs request to given service and deserializes json response to struct. out should be pointer to resulting structure. Returns error if request or deserialization failed.

Types

type HypervisorStatistics

type HypervisorStatistics struct {
	Id                 int
	CurrentWorkload    int
	DiskAvailableLeast int
	FreeDiskGB         int
	FreeRamMB          int
	HypervisorVersion  int
	LocalGB            int
	LocalGBUsed        int
	MemoryMB           int
	MemoryMBUsed       int
	RunningVMs         int
	VCPUs              int
	VCPUsUsed          int
}

type LimitsAbsolute

type LimitsAbsolute struct {
	MaxServerMeta           int
	MaxPersonality          int
	TotalServerGroupsUsed   int
	MaxImageMeta            int
	MaxPersonalitySize      int
	MaxServerGroups         int
	MaxSecurityGroupRules   int
	MaxTotalKeypairs        int
	TotalCoresUsed          int
	TotalRAMUsed            int
	TotalInstancesUsed      int
	MaxSecurityGroups       int
	TotalFloatingIPsUsed    int
	MaxTotalCores           int
	TotalSecurityGroupsUsed int
	MaxTotalFloatingIPs     int
	MaxTotalInstances       int
	MaxTotalRamSize         int
	MaxServerGroupMembers   int
}

type Nova

type Nova interface {
	GetLimits() (LimitsAbsolute, error)
	GetQuotas() (QuotaSet, error)
	GetHypervisorStatistics() (HypervisorStatistics, error)
}

Nova is abstraction layer for nova-compute service, providing consisten api in case of version changes.

type QuotaSet

type QuotaSet struct {
	Cores          int
	FixedIps       int
	FloatingIps    int
	Instances      int
	KeyPairs       int
	Ram            int
	SecurityGroups int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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