scheduler

package
v0.0.0-...-0fce7b6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 4 Imported by: 0

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)

Jump to

Keyboard shortcuts

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