Documentation
¶
Overview ¶
Package vpcs manages VPCs through the VPC v1 API.
Index ¶
- func Delete(client *golangsdk.ServiceClient, id string) error
- type CreateOpts
- type ListOpts
- type Route
- type UpdateOpts
- type Vpc
- func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*Vpc, error)
- func ExtractVpcs(page pagination.NewPage) ([]Vpc, error)
- func Get(client *golangsdk.ServiceClient, id string) (*Vpc, error)
- func List(client *golangsdk.ServiceClient, opts ListOpts) ([]Vpc, error)
- func Update(client *golangsdk.ServiceClient, id string, opts UpdateOpts) (*Vpc, error)
- type VpcPage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOpts ¶
type UpdateOpts ¶
type Vpc ¶
type Vpc struct {
ID string `json:"id"`
Name string `json:"name"`
CIDR string `json:"cidr"`
Description string `json:"description"`
Status string `json:"status"`
Routes []Route `json:"routes"`
EnterpriseProjectID string `json:"enterprise_project_id"`
TenantId string `json:"tenant_id"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*Vpc, error)
func ExtractVpcs ¶
func ExtractVpcs(page pagination.NewPage) ([]Vpc, error)
func Update ¶
func Update(client *golangsdk.ServiceClient, id string, opts UpdateOpts) (*Vpc, error)
type VpcPage ¶
type VpcPage struct {
pagination.NewPageResult
}
func (VpcPage) NewIsEmpty ¶
func (VpcPage) NewNextPageURL ¶
Click to show internal directories.
Click to hide internal directories.