Documentation
¶
Overview ¶
Package schedulerstats gives information about block storage pool capacity and utilisation
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
List makes a request against the API to list hypervisors.
Types ¶
type Capabilities ¶
type Capabilities struct {
// Required Fields
DriverVersion string `json:"driver_version"`
FreeCapacityGB float64 `json:"-"`
StorageProtocol string `json:"storage_protocol"`
TotalCapacityGB float64 `json:"-"`
VendorName string `json:"vendor_name"`
VolumeBackendName string `json:"volume_backend_name"`
// Optional Fields
ReservedPercentage int64 `json:"reserved_percentage"`
LocationInfo string `json:"location_info"`
QoSSupport bool `json:"QoS_support"`
ProvisionedCapacityGB float64 `json:"provisioned_capacity_gb"`
MaxOverSubscriptionRatio float64 `json:"max_over_subscription_ratio"`
ThinProvisioningSupport bool `json:"thin_provisioning_support"`
ThickProvisioningSupport bool `json:"thick_provisioning_support"`
TotalVolumes int64 `json:"total_volumes"`
FilterFunction string `json:"filter_function"`
GoodnessFuction string `json:"goodness_function"`
Mutliattach bool `json:"multiattach"`
SparseCopyVolume bool `json:"sparse_copy_volume"`
}
Minimum set of driver capabilities only
func (*Capabilities) UnmarshalJSON ¶
func (r *Capabilities) UnmarshalJSON(b []byte) error
type ListOpts ¶
type ListOpts struct {
// ID of the tenant to look up storage pools for
TenantID string `q:"tenant_id"`
// Whether to list extended details
Detail bool `q:"detail"`
}
ListOpts controls the view of data returned (e.g globally or per project) via tenant_id and the verbosity via detail
func (ListOpts) ToStoragePoolsListQuery ¶
Formats a ListOpts into a query string.
type ListOptsBuilder ¶
ListOptsBuilder allows extensions to add additional parameters to the List request.
type StoragePool ¶
type StoragePool struct {
Name string `json:"name"`
Capabilities Capabilities `json:"capabilities"`
}
func ExtractStoragePools ¶
func ExtractStoragePools(p pagination.Page) ([]StoragePool, error)
type StoragePoolPage ¶
type StoragePoolPage struct {
pagination.SinglePageBase
}
func (StoragePoolPage) IsEmpty ¶
func (page StoragePoolPage) IsEmpty() (bool, error)
Click to show internal directories.
Click to hide internal directories.