package
0.0.0-20210831081626-d823fe11ceba
Repository: https://github.com/huaweicloud/golangsdk.git
Documentation: pkg.go.dev
# Packages
flavors unit tests.
# Functions
AddAccess grants a tenant/project access to a flavor.
Create requests the creation of a new flavor.
CreateExtraSpecs will create or update the extra-specs key-value pairs for the specified Flavor.
Delete deletes the specified flavor ID.
DeleteExtraSpec will delete the key-value pair with the given key for the given flavor ID.
ExtractAccesses interprets a page of results as a slice of FlavorAccess.
ExtractFlavors provides access to the list of flavors in a page acquired from the ListDetail operation.
Get retrieves details of a single flavor.
No description provided by the author
IDFromName is a convienience function that returns a flavor's ID given its name.
ListAccesses retrieves the tenants which have access to a flavor.
ListDetail instructs OpenStack to provide a list of flavors.
ExtraSpecs requests all the extra-specs for the given flavor ID.
RemoveAccess removes/revokes a tenant/project access to a flavor.
UpdateExtraSpec will updates the value of the specified flavor's extra spec for the key in opts.
# Constants
AllAccess (admin only) returns public and private flavors across all projects.
PrivateAccess (admin only) returns private flavors, across all projects.
PublicAccess returns public flavors and private flavors associated with that project.
# Structs
AccessPage contains a single page of all FlavorAccess entries for a flavor.
AddAccessOpts represents options for adding access to a flavor.
AddAccessResult is the response of an AddAccess operation.
CreateExtraSpecResult contains the result of a Create operation.
CreateOpts specifies parameters used for creating a flavor.
CreateResult is the response of a Get operations.
DeleteExtraSpecResult contains the result of a Delete operation.
DeleteResult is the result from a Delete operation.
Flavor represent (virtual) hardware configurations for server resources in a region.
FlavorAccess represents an ACL of tenant access to a specific Flavor.
FlavorPage contains a single page of all flavors from a ListDetails call.
GetExtraSpecResult contains the result of a Get operation.
GetResult is the response of a Get operations.
ListExtraSpecsResult contains the result of a Get operation.
ListOpts filters the results returned by the List() function.
RemoveAccessOpts represents options for removing access to a flavor.
RemoveAccessResult is the response of a RemoveAccess operation.
UpdateExtraSpecResult contains the result of an Update operation.
# Interfaces
AddAccessOptsBuilder allows extensions to add additional parameters to the AddAccess requests.
CreateExtraSpecsOptsBuilder allows extensions to add additional parameters to the CreateExtraSpecs requests.
No description provided by the author
ListOptsBuilder allows extensions to add additional parameters to the List request.
RemoveAccessOptsBuilder allows extensions to add additional parameters to the RemoveAccess requests.
UpdateExtraSpecOptsBuilder allows extensions to add additional parameters to the Update request.
# Type aliases
AccessType maps to OpenStack's Flavor.is_public field.
ExtraSpecsOpts is a map that contains key-value pairs.