Documentation ¶
Overview ¶
Package ruletypes contains functionality for working with Neutron 'quality of service' rule-type resources.
Example: You can list rule-types in the following way:
page, err := ruletypes.ListRuleTypes(client).AllPages() if err != nil { return } rules, err := ruletypes.ExtractRuleTypes(page) if err != nil { return } fmt.Printf("%v <- Rule Types\n", rules)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListRuleTypes ¶
func ListRuleTypes(c *golangsdk.ServiceClient) (result pagination.Pager)
ListRuleTypes returns the list of rule types from the server
Types ¶
type ListRuleTypesPage ¶
type ListRuleTypesPage struct {
pagination.SinglePageBase
}
func (ListRuleTypesPage) IsEmpty ¶
func (r ListRuleTypesPage) IsEmpty() (bool, error)
type RuleType ¶
type RuleType struct {
Type string `json:"type"`
}
The result of listing the qos rule types
func ExtractRuleTypes ¶
func ExtractRuleTypes(r pagination.Page) ([]RuleType, error)
Click to show internal directories.
Click to hide internal directories.