Documentation ¶
Index ¶
- func CreateURL(c *gophercloud.ServiceClient) string
- func DeleteURL(c *gophercloud.ServiceClient, routeId string) string
- func GetURL(c *gophercloud.ServiceClient, routeId string) string
- func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
- func ListURL(c *gophercloud.ServiceClient) string
- type CreateOpts
- type CreateOptsBuilder
- type CreateResult
- type DeleteResult
- type GetResult
- type ListOpts
- type ListOptsBuilder
- type ListResult
- type Route
- type RoutePage
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 List ¶
func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
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 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)
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 ¶
type ListOptsBuilder ¶
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)
Click to show internal directories.
Click to hide internal directories.