services

package
v0.0.0-...-eebe1bb 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: 5 Imported by: 0

Documentation

Index

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

func (*Service) Set

func (c *Service) Set(new Cinderer)

Set allows to set proper API version implementation

Jump to

Keyboard shortcuts

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