Documentation ¶
Index ¶
- func AcceptURL(c *gophercloud.ServiceClient, peeringID string) string
- func CreateURL(c *gophercloud.ServiceClient) string
- func DeleteURL(c *gophercloud.ServiceClient, peeringID string) string
- func GetURL(c *gophercloud.ServiceClient, peeringID string) string
- func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
- func ListURL(c *gophercloud.ServiceClient) string
- func RejectURL(c *gophercloud.ServiceClient, peeringID string) string
- func UpdateURL(c *gophercloud.ServiceClient, peeringID string) string
- type ActionResult
- type CreateOpts
- type CreateOptsBuilder
- type CreateResult
- type DeleteResult
- type GetResult
- type ListOpts
- type ListOptsBuilder
- type Peering
- type PeeringPage
- type UpdateOpts
- type UpdateOptsBuilder
- type UpdateResult
- type VPCInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func List ¶
func List(client *gophercloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
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 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 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 ¶
type ListOptsBuilder ¶
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 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)
Click to show internal directories.
Click to hide internal directories.