extraroutes

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddResult

type AddResult struct {
	// contains filtered or unexported fields
}

AddResult represents the result of an extra routes add operation. Call its Extract method to interpret it as a *routers.Router.

func Add

Add allows routers to be updated with a list of routes to be added.

func (AddResult) Extract

func (r AddResult) Extract() (*routers.Router, error)

Extract is a function that accepts a result and extracts a router.

type Opts

type Opts struct {
	Routes *[]routers.Route `json:"routes,omitempty"`
}

Opts contains the values needed to add or remove a list og routes on a router.

func (Opts) ToExtraRoutesUpdateMap

func (opts Opts) ToExtraRoutesUpdateMap() (map[string]interface{}, error)

ToExtraRoutesUpdateMap builds a body based on Opts.

type OptsBuilder

type OptsBuilder interface {
	ToExtraRoutesUpdateMap() (map[string]interface{}, error)
}

OptsBuilder allows extensions to add additional parameters to the Add or Remove requests.

type RemoveResult

type RemoveResult struct {
	// contains filtered or unexported fields
}

RemoveResult represents the result of an extra routes remove operation. Call its Extract method to interpret it as a *routers.Router.

func Remove

func Remove(c *gophercloud.ServiceClient, id string, opts OptsBuilder) (r RemoveResult)

Remove allows routers to be updated with a list of routes to be removed.

func (RemoveResult) Extract

func (r RemoveResult) Extract() (*routers.Router, error)

Extract is a function that accepts a result and extracts a router.

Directories

Path Synopsis
extraroutes unit tests
extraroutes unit tests

Jump to

Keyboard shortcuts

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