ruletypes

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

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 *gophercloud.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)

Directories

Path Synopsis
qos unit tests
qos unit tests

Jump to

Keyboard shortcuts

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