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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListURL

func ListURL(c *golangsdk.ServiceClient) string

Types

type Flavors

type Flavors struct {
	Count   int             `json:"count"`
	Flavors []common.Flavor `json:"flavors"`
}

type GetResult

type GetResult struct {
	// contains filtered or unexported fields
}

func List

func List(client *golangsdk.ServiceClient, listOpts ListOptsBuilder) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*Flavors, error)

type ListOpts

type ListOpts struct {
	//SiteIDS query by site ids
	SiteIDS string `q:"site_ids"`

	//Name query by name
	Name string `q:"name"`

	//Limit query limit
	Limit string `q:"limit"`

	//Offset query begin index
	Offset string `q:"offset"`

	//ID query by id
	ID string `q:"id"`

	//Area query by area
	Area string `q:"area"`

	//Province query by province
	Province string `q:"province"`

	//City query by city
	City string `q:"city"`

	//Operator query by operator
	Operator string `q:"operator"`
}

ListOpts to list site

func (ListOpts) ToListQuery

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

ToListQuery converts ListOpts structures to query string

type ListOptsBuilder

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

ListOptsBuilder list builder

Jump to

Keyboard shortcuts

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