Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttrsObject ¶
type AttrsObject struct { Capacity string `json:"capacity"` Name string `json:"name"` Value string `json:"value"` }
AttrsObject contains attributes of the flavor
type Flavor ¶
type Flavor struct { SpecCode string `json:"spec_code"` CacheMode string `json:"cache_mode"` Engine string `json:"engine"` EngineVersion string `json:"engine_version"` TenantIPCount int `json:"tenant_ip_count"` IsDes bool `json:"is_dec"` Capacity []string `json:"capacity"` BillingMode []string `json:"billing_mode"` ProductType string `json:"product_type"` CPUType string `json:"cpu_type"` StorageType string `json:"storage_type"` PricingType string `json:"pricing_type"` ServiceTypeCode string `json:"cloud_service_type_code"` ResourceTypeCode string `json:"cloud_resource_type_code"` Attributes []AttrsObject `json:"attrs"` AvailableZones []FlavorAzObject `json:"flavors_available_zones"` }
Flavor for dcs
type FlavorAzObject ¶
FlavorAzObject contains information of the available zones
type ListOpts ¶
type ListOpts 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"` }
ListOpts allows the filtering and sorting of paginated collections through the API. Filtering is achieved by passing in struct field values that map to the server attributes you want to see returned.
func (ListOpts) ToFlavorListQuery ¶
ToFlavorListQuery formats a ListOpts into a query string.
type ListOptsBuilder ¶
ListOptsBuilder allows extensions to add parameters to the List request.
type ListResult ¶
ListResult contains the body of getting detailed
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOptsBuilder) (r ListResult)
List implements a flavor List request.
Click to show internal directories.
Click to hide internal directories.