flavors

package
v0.0.0-...-63319d1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(client *golangsdk.ServiceClient, opts ListFlavorBuilder) pagination.Pager

Types

type Flavor

type Flavor struct {
	EngineName       string   `json:"engine_name"`
	EngineVersion    string   `json:"engine_version"`
	Vcpus            string   `json:"vcpus"`
	Ram              string   `json:"ram"`
	SpecCode         string   `json:"spec_code"`
	AvailabilityZone []string `json:"availability_zone"`
	// AZ status
	AzStatus map[string]string `json:"az_status"`
}

type FlavorPage

type FlavorPage struct {
	pagination.SinglePageBase
}

func (FlavorPage) IsEmpty

func (r FlavorPage) IsEmpty() (bool, error)

type ListFlavorBuilder

type ListFlavorBuilder interface {
	ToFlavorListDetailQuery() (string, error)
}

type ListFlavorOpts

type ListFlavorOpts struct {
	EngineName string `q:"engine_name"`
}

func (ListFlavorOpts) ToFlavorListDetailQuery

func (opts ListFlavorOpts) ToFlavorListDetailQuery() (string, error)

type ListFlavorResponse

type ListFlavorResponse struct {
	Flavors    []Flavor `json:"flavors"`
	TotalCount int      `json:"total_count"`
}

func ExtractFlavors

func ExtractFlavors(r pagination.Page) (ListFlavorResponse, error)

Jump to

Keyboard shortcuts

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