Documentation ¶
Index ¶
- func ExtractPublicIPsInto(r pagination.Page, v interface{}) error
- func IDFromName(client *eclcloud.ServiceClient, name string) (string, error)
- func List(c *eclcloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
- type CreateOpts
- type CreateOptsBuilder
- type CreateResult
- type DeleteResult
- type GetResult
- type ListOpts
- type ListOptsBuilder
- type PublicIP
- type PublicIPPage
- type UpdateOpts
- type UpdateOptsBuilder
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPublicIPsInto ¶
func ExtractPublicIPsInto(r pagination.Page, v interface{}) error
func IDFromName ¶
func List ¶
func List(c *eclcloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
Types ¶
type CreateOpts ¶
type CreateOpts struct { Description string `json:"description,omitempty"` InternetGwID string `json:"internet_gw_id" required:"true"` Name string `json:"name,omitempty"` SubmaskLength int `json:"submask_length" required:"true"` TenantID string `json:"tenant_id,omitempty"` }
func (CreateOpts) ToPublicIPCreateMap ¶
func (opts CreateOpts) ToPublicIPCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
func Create ¶
func Create(c *eclcloud.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
func (CreateResult) ExtractInto ¶
func (r CreateResult) ExtractInto(v interface{}) error
type DeleteResult ¶
type DeleteResult struct {
eclcloud.ErrResult
}
func Delete ¶
func Delete(c *eclcloud.ServiceClient, publicIPID string) (r DeleteResult)
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func (GetResult) ExtractInto ¶
func (r GetResult) ExtractInto(v interface{}) error
type ListOpts ¶
type ListOpts struct { Cidr string `q:"cidr"` Description string `q:"description"` ID string `q:"id"` InternetGwID string `q:"internet_gw_id"` Name string `q:"name"` Status string `q:"status"` SubmaskLength int `q:"submask_length"` TenantID string `q:"tenant_id"` }
func (ListOpts) ToPublicIPListQuery ¶
type ListOptsBuilder ¶
type PublicIP ¶
type PublicIP struct { Cidr string `json:"cidr"` Description string `json:"description"` ID string `json:"id"` InternetGwID string `json:"internet_gw_id"` Name string `json:"name"` Status string `json:"status"` SubmaskLength int `json:"submask_length"` TenantID string `json:"tenant_id"` }
func ExtractPublicIPs ¶
func ExtractPublicIPs(r pagination.Page) ([]PublicIP, error)
type PublicIPPage ¶
type PublicIPPage struct {
pagination.LinkedPageBase
}
func (PublicIPPage) IsEmpty ¶
func (r PublicIPPage) IsEmpty() (bool, error)
func (PublicIPPage) NextPageURL ¶
func (r PublicIPPage) NextPageURL() (string, error)
type UpdateOpts ¶
type UpdateOpts struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` }
func (UpdateOpts) ToPublicIPUpdateMap ¶
func (opts UpdateOpts) ToPublicIPUpdateMap() (map[string]interface{}, error)
type UpdateOptsBuilder ¶
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
func Update ¶
func Update(c *eclcloud.ServiceClient, publicIPID string, opts UpdateOptsBuilder) (r UpdateResult)
func (UpdateResult) ExtractInto ¶
func (r UpdateResult) ExtractInto(v interface{}) error
Click to show internal directories.
Click to hide internal directories.