services

package
v0.0.0-...-474c82f 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 Glancer

type Glancer interface {
	GetImages(provider *gophercloud.ProviderClient) (map[string]types.Images, error)
}

Glancer allows usage of different Glance 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 Glance API version based on priority

func (Service) GetImages

func (s Service) GetImages(provider *gophercloud.ProviderClient) (map[string]types.Images, error)

GetImages dispatches call to proper API version calls to collect images metrics

func (*Service) Set

func (c *Service) Set(new Glancer)

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