others

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attrs

type Attrs struct {
	Capacity string `json:"capacity"`
	Name     string `json:"name"`
	Value    string `json:"value"`
}

type AvailableZone

type AvailableZone struct {
	ID                   string `json:"id"`
	Code                 string `json:"code"`
	Name                 string `json:"name"`
	Port                 string `json:"port"`
	ResourceAvailability string `json:"resource_availability"`
}

type AvailableZonesResponse

type AvailableZonesResponse struct {
	RegionID       string          `json:"regionId"`
	AvailableZones []AvailableZone `json:"available_zones"`
}

func ListAvailableZones

func ListAvailableZones(client *golangsdk.ServiceClient) (*AvailableZonesResponse, error)

type FlavorAzObject

type FlavorAzObject struct {
	Capacity       string   `json:"capacity"`
	Unit           string   `json:"unit"`
	AvailableZones []string `json:"available_zones"`
	AzCodes        []string `json:"az_codes"`
}

type ListFlavorOpts

type ListFlavorOpts struct {
	CacheMode     string `q:"cache_mode"`
	Engine        string `q:"engine"`
	EngineVersion string `q:"engine_version"`
	Capacity      string `q:"capacity"`
	SpecCode      string `q:"spec_code"`
	CPUType       string `q:"cpu_type"`
}

type Product

type Product struct {
	SpecCode              string           `json:"spec_code"`
	CloudServiceTypeCode  string           `json:"cloud_service_type_code"`
	CloudResourceTypeCode string           `json:"cloud_resource_type_code"`
	CacheMode             string           `json:"cache_mode"`
	Engine                string           `json:"engine"`
	EngineVersion         string           `json:"engine_version"`
	ProductType           string           `json:"product_type"`
	CpuType               string           `json:"cpu_type"`
	StorageType           string           `json:"storage_type"`
	Capacity              []string         `json:"capacity"`
	BillingMode           []string         `json:"billing_mode"`
	TenantIpCount         int              `json:"tenant_ip_count"`
	PricingType           string           `json:"pricing_type"`
	IsDec                 bool             `json:"is_dec"`
	Attrs                 []Attrs          `json:"attrs"`
	FlavorsAvailableZones []FlavorAzObject `json:"flavors_available_zones"`
	ReplicaCount          int              `json:"replica_count"`
}

func ListFlavors

func ListFlavors(client *golangsdk.ServiceClient, opts ListFlavorOpts) ([]Product, error)

Jump to

Keyboard shortcuts

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