Versions in this module Expand all Collapse all v1 v1.0.21 Mar 12, 2020 v1.0.12 Apr 7, 2019 Changes in this version + func IDFromName(client *gophercloud.ServiceClient, name string) (string, error) + func ListAccesses(client *gophercloud.ServiceClient, id string) pagination.Pager + func ListDetail(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager + type AccessPage struct + func (page AccessPage) IsEmpty() (bool, error) + type AccessType string + const AllAccess + const PrivateAccess + const PublicAccess + type AddAccessOpts struct + Tenant string + func (opts AddAccessOpts) ToFlavorAddAccessMap() (map[string]interface{}, error) + type AddAccessOptsBuilder interface + ToFlavorAddAccessMap func() (map[string]interface{}, error) + type AddAccessResult struct + func AddAccess(client *gophercloud.ServiceClient, id string, opts AddAccessOptsBuilder) (r AddAccessResult) + func (r AddAccessResult) Extract() ([]FlavorAccess, error) + type CreateExtraSpecsOptsBuilder interface + ToExtraSpecsCreateMap func() (map[string]interface{}, error) + type CreateExtraSpecsResult struct + func CreateExtraSpecs(client *gophercloud.ServiceClient, flavorID string, ...) (r CreateExtraSpecsResult) + func (r CreateExtraSpecsResult) Extract() (map[string]string, error) + type CreateOpts struct + Disk *int + Ephemeral *int + ID string + IsPublic *bool + Name string + RAM int + RxTxFactor float64 + Swap *int + VCPUs int + func (opts CreateOpts) ToFlavorCreateMap() (map[string]interface{}, error) + type CreateOptsBuilder interface + ToFlavorCreateMap func() (map[string]interface{}, error) + type CreateResult struct + func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult) + func (r CreateResult) Extract() (*Flavor, error) + type DeleteExtraSpecResult struct + func DeleteExtraSpec(client *gophercloud.ServiceClient, flavorID, key string) (r DeleteExtraSpecResult) + type DeleteResult struct + func Delete(client *gophercloud.ServiceClient, id string) (r DeleteResult) + type ExtraSpecsOpts map[string]string + func (opts ExtraSpecsOpts) ToExtraSpecUpdateMap() (map[string]string, string, error) + func (opts ExtraSpecsOpts) ToExtraSpecsCreateMap() (map[string]interface{}, error) + type Flavor struct + Disk int + Ephemeral int + ID string + IsPublic bool + Name string + RAM int + RxTxFactor float64 + Swap int + VCPUs int + func ExtractFlavors(r pagination.Page) ([]Flavor, error) + func (r *Flavor) UnmarshalJSON(b []byte) error + type FlavorAccess struct + FlavorID string + TenantID string + func ExtractAccesses(r pagination.Page) ([]FlavorAccess, error) + type FlavorPage struct + func (page FlavorPage) IsEmpty() (bool, error) + func (page FlavorPage) NextPageURL() (string, error) + type GetExtraSpecResult struct + func GetExtraSpec(client *gophercloud.ServiceClient, flavorID string, key string) (r GetExtraSpecResult) + func (r GetExtraSpecResult) Extract() (map[string]string, error) + type GetResult struct + func Get(client *gophercloud.ServiceClient, id string) (r GetResult) + func (r GetResult) Extract() (*Flavor, error) + type ListExtraSpecsResult struct + func ListExtraSpecs(client *gophercloud.ServiceClient, flavorID string) (r ListExtraSpecsResult) + func (r ListExtraSpecsResult) Extract() (map[string]string, error) + type ListOpts struct + AccessType AccessType + ChangesSince string + Limit int + Marker string + MinDisk int + MinRAM int + func (opts ListOpts) ToFlavorListQuery() (string, error) + type ListOptsBuilder interface + ToFlavorListQuery func() (string, error) + type RemoveAccessOpts struct + Tenant string + func (opts RemoveAccessOpts) ToFlavorRemoveAccessMap() (map[string]interface{}, error) + type RemoveAccessOptsBuilder interface + ToFlavorRemoveAccessMap func() (map[string]interface{}, error) + type RemoveAccessResult struct + func RemoveAccess(client *gophercloud.ServiceClient, id string, opts RemoveAccessOptsBuilder) (r RemoveAccessResult) + func (r RemoveAccessResult) Extract() ([]FlavorAccess, error) + type UpdateExtraSpecOptsBuilder interface + ToExtraSpecUpdateMap func() (map[string]string, string, error) + type UpdateExtraSpecResult struct + func UpdateExtraSpec(client *gophercloud.ServiceClient, flavorID string, ...) (r UpdateExtraSpecResult) + func (r UpdateExtraSpecResult) Extract() (map[string]string, error)