flavors

package
v0.5.21 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(client *golangsdk.ServiceClient, opts ListOptsBuilder, dbName string) pagination.Pager

Types

type DbFlavorsPage

type DbFlavorsPage struct {
	pagination.SinglePageBase
}

func (DbFlavorsPage) IsEmpty

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

type Flavor added in v0.5.2

type Flavor struct {
	VCPUs        string            `json:"vcpus"`
	RAM          int               `json:"ram"`
	SpecCode     string            `json:"spec_code"`
	InstanceMode string            `json:"instance_mode"`
	AzStatus     map[string]string `json:"az_status"`
}

func ExtractDbFlavors

func ExtractDbFlavors(r pagination.Page) ([]Flavor, error)

type ListOpts added in v0.5.2

type ListOpts struct {
	VersionName string `q:"version_name"`
	SpecCode    string `q:"spec_code"`
}

func (ListOpts) ToListOptsQuery added in v0.5.2

func (opts ListOpts) ToListOptsQuery() (string, error)

type ListOptsBuilder added in v0.5.2

type ListOptsBuilder interface {
	ToListOptsQuery() (string, error)
}

Jump to

Keyboard shortcuts

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