Documentation ¶
Index ¶
- type Cinderer
- type Service
- func (s Service) GetLimits(provider *gophercloud.ProviderClient) (types.Limits, error)
- func (s Service) GetSnapshots(provider *gophercloud.ProviderClient) (map[string]types.Snapshots, error)
- func (s Service) GetVolumes(provider *gophercloud.ProviderClient) (map[string]types.Volumes, error)
- func (c *Service) Set(new Cinderer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cinderer ¶
type Cinderer interface { GetLimits(provider *gophercloud.ProviderClient) (types.Limits, error) GetVolumes(provider *gophercloud.ProviderClient) (map[string]types.Volumes, error) GetSnapshots(provider *gophercloud.ProviderClient) (map[string]types.Snapshots, error) }
Cinderer allows usage of different Cinder API versions for metric collection
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Services serves as a API calls dispatcher
func Dispatch ¶
func Dispatch(provider *gophercloud.ProviderClient) Service
Dispatch redirects to selected Cinder API version based on priority
func (Service) GetLimits ¶
func (s Service) GetLimits(provider *gophercloud.ProviderClient) (types.Limits, error)
GetLimits dispatches call to proper API version calls to collect limits metrics
func (Service) GetSnapshots ¶
func (s Service) GetSnapshots(provider *gophercloud.ProviderClient) (map[string]types.Snapshots, error)
GetSnapshots dispatches call to proper API version calls to collect snapshot metrics
func (Service) GetVolumes ¶
func (s Service) GetVolumes(provider *gophercloud.ProviderClient) (map[string]types.Volumes, error)
GetVolumes dispatches call to proper API version calls to collect volumes metrics
Click to show internal directories.
Click to hide internal directories.