Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capabilities ¶
type Capabilities struct { TotalCapacityGb float64 `json:"total_capacity_gb"` FreeCapacityGb float64 `json:"free_capacity_gb"` VolumeBackendName string `json:"volume_backend_name"` //The percentage of the total capacity that is reserved for the internal use by the back end. ReservedPercentage float64 `json:"reserved_percentage"` DriverVersion string `json:"driver_version"` MaxOverSubscriptionRatio interface{} `json:"max_over_subscription_ratio"` // from version queens, it return float, or it return //The storage back end for the back-end volume. For example, iSCSI or FC. StorageProtocol string `json:"storage_protocol"` //The quality of service (QoS) support. QoSSupport bool `json:"QoS_support"` ReplicationEnabled bool `json:"replication_enabled"` ProvisionedCapacityGb float64 `json:"provisioned_capacity_gb"` AllocatedCapacityGb float64 `json:"allocated_capacity_gb"` }
type ListPoolRequest ¶
type ListPoolRequest struct { }
type ListPoolResponse ¶
type ListPoolResponse struct { Pools []struct { Name string `json:"name"` Capabilities Capabilities } `json:"pools"` }
type StoragePool ¶
type StoragePool struct { Name string `json:"name"` Capabilities Capabilities `json:"capabilities"` }
StoragePool represents an individual StoragePool retrieved from the schedulerstats API.
func ListPool ¶
func ListPool(client *v3.VolumeClient) ([]StoragePool, error)
Click to show internal directories.
Click to hide internal directories.