routes

package
v1.0.23 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateURL

func CreateURL(c *gophercloud.ServiceClient) string

func DeleteURL

func DeleteURL(c *gophercloud.ServiceClient, routeId string) string

func GetURL

func GetURL(c *gophercloud.ServiceClient, routeId string) string

func ListURL

func ListURL(c *gophercloud.ServiceClient) string

Types

type CreateOpts

type CreateOpts struct {
	Type        string `json:"type" required:"true"`
	Nexthop     string `json:"nexthop" required:"true"`
	Destination string `json:"destination" required:"true"`
	VpcID       string `json:"vpc_id" required:"true"`
}

func (CreateOpts) ToRouteCreateMap

func (opts CreateOpts) ToRouteCreateMap() (map[string]interface{}, error)

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToRouteCreateMap() (map[string]interface{}, error)
}

type CreateResult

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

func Create

func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult)

func (CreateResult) Extract

func (r CreateResult) Extract() (*Route, error)

type DeleteResult

type DeleteResult struct {
	gophercloud.ErrResult
}

func Delete

func Delete(client *gophercloud.ServiceClient, routeId string) (r DeleteResult)

type GetResult

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

func Get

func Get(client *gophercloud.ServiceClient, routeId string) (r GetResult)

func (GetResult) Extract

func (r GetResult) Extract() (*Route, error)

type ListOpts

type ListOpts struct {
	// Specifies that the port ID is used as the filter.
	ID string `q:"id"`

	Type string `q:"type"`

	Destination string `q:"destination"`

	VpcID string `q:"vpc_id"`

	TenantID string `q:"tenant_id"`

	// Specifies the resource ID of pagination query. If the parameter
	// is left blank, only resources on the first page are queried.
	Marker string `q:"marker"`

	// Specifies the number of records returned on each page.
	Limit int `q:"limit"`
}

func (ListOpts) ToListQuery

func (opts ListOpts) ToListQuery() (string, error)

type ListOptsBuilder

type ListOptsBuilder interface {
	ToListQuery() (string, error)
}

type ListResult

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

func (ListResult) Extract

func (r ListResult) Extract() (*[]Route, error)

type Route

type Route struct {
	Type        string `json:"type"`
	Nexthop     string `json:"nexthop"`
	Destination string `json:"destination"`
	VpcID       string `json:"vpc_id"`
	TenantID    string `json:"tenant_id"`
	ID          string `json:"id"`
}

func ExtractRoutes

func ExtractRoutes(r pagination.Page) ([]Route, error)

type RoutePage

type RoutePage struct {
	pagination.LinkedPageBase
}

func (RoutePage) IsEmpty

func (r RoutePage) IsEmpty() (bool, error)

func (RoutePage) NextPageURL

func (r RoutePage) NextPageURL() (string, error)

Jump to

Keyboard shortcuts

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