peerings

package
v0.0.0-...-ae37572 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptURL

func AcceptURL(c *gophercloud.ServiceClient, peeringID string) string

func CreateURL

func CreateURL(c *gophercloud.ServiceClient) string

func DeleteURL

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

func GetURL

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

func ListURL

func ListURL(c *gophercloud.ServiceClient) string

func RejectURL

func RejectURL(c *gophercloud.ServiceClient, peeringID string) string

func UpdateURL

func UpdateURL(c *gophercloud.ServiceClient, peeringID string) string

Types

type ActionResult

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

func Accept

func Accept(client *gophercloud.ServiceClient, peeringID string) (r ActionResult)

func Reject

func Reject(client *gophercloud.ServiceClient, peeringID string) (r ActionResult)

func (ActionResult) Extract

func (r ActionResult) Extract() (*Peering, error)

type CreateOpts

type CreateOpts struct {
	Name           string  `json:"name" required:"true"`
	RequestVpcInfo VPCInfo `json:"request_vpc_info" required:"true"`
	AcceptVpcInfo  VPCInfo `json:"accept_vpc_info" required:"true"`
}

func (CreateOpts) ToPeeringCreateMap

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

type CreateOptsBuilder

type CreateOptsBuilder interface {
	ToPeeringCreateMap() (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() (*Peering, error)

type DeleteResult

type DeleteResult struct {
	gophercloud.ErrResult
}

func Delete

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

type GetResult

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

func Get

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

func (GetResult) Extract

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

type ListOpts

type ListOpts struct {
	// 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"`

	ID string `q:"id"`

	Name string `q:"name"`

	Status string `q:"status"`

	VpcID string `q:"vpc_id"`

	TenantID string `q:"tenant_id"`
}

func (ListOpts) ToPeeringListQuery

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

type ListOptsBuilder

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

type Peering

type Peering struct {
	// Specifies a resource ID in UUID format.
	ID string `json:"id"`

	Name string `json:"name,omitempty"`

	Status string `json:"status"`

	Description    string  `json:"description"`
	RequestVpcInfo VPCInfo `json:"request_vpc_info"`
	AcceptVpcInfo  VPCInfo `json:"accept_vpc_info"`
}

func ExtractPeerings

func ExtractPeerings(r pagination.Page) ([]Peering, error)

type PeeringPage

type PeeringPage struct {
	pagination.LinkedPageBase
}

func (PeeringPage) IsEmpty

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

IsEmpty checks whether a NetworkPage struct is empty.

func (PeeringPage) NextPageURL

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

type UpdateOpts

type UpdateOpts struct {
	Name string `json:"name,omitempty"`
}

func (UpdateOpts) ToPeeringUpdateMap

func (opts UpdateOpts) ToPeeringUpdateMap() (map[string]interface{}, error)

type UpdateOptsBuilder

type UpdateOptsBuilder interface {
	ToPeeringUpdateMap() (map[string]interface{}, error)
}

type UpdateResult

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

func Update

func Update(client *gophercloud.ServiceClient, peeringID string, opts UpdateOptsBuilder) (r UpdateResult)

func (UpdateResult) Extract

func (r UpdateResult) Extract() (*Peering, error)

type VPCInfo

type VPCInfo struct {
	VpcID    string `json:"vpc_id"`
	TenantID string `json:"tenant_id,omitempty"`
}

Jump to

Keyboard shortcuts

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