Documentation ¶
Index ¶
- func ExtractInternetGatewaysInto(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 InternetGateway
- type InternetGatewayPage
- type ListOpts
- type ListOptsBuilder
- type UpdateOpts
- type UpdateOptsBuilder
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractInternetGatewaysInto ¶
func ExtractInternetGatewaysInto(r pagination.Page, v interface{}) error
func IDFromName ¶
func IDFromName(client *eclcloud.ServiceClient, name string) (string, error)
func List ¶
func List(c *eclcloud.ServiceClient, opts ListOptsBuilder) pagination.Pager
Types ¶
type CreateOpts ¶
type CreateOpts struct { Description string `json:"description,omitempty"` InternetServiceID string `json:"internet_service_id" required:"true"` Name string `json:"name,omitempty"` QoSOptionID string `json:"qos_option_id" required:"true"` TenantID string `json:"tenant_id,omitempty"` }
func (CreateOpts) ToInternetGatewayCreateMap ¶
func (opts CreateOpts) ToInternetGatewayCreateMap() (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) Extract ¶
func (r CreateResult) Extract() (*InternetGateway, error)
func (CreateResult) ExtractInto ¶
func (r CreateResult) ExtractInto(v interface{}) error
type DeleteResult ¶
func Delete ¶
func Delete(c *eclcloud.ServiceClient, internetGatewayID string) (r DeleteResult)
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func (GetResult) Extract ¶
func (r GetResult) Extract() (*InternetGateway, error)
func (GetResult) ExtractInto ¶
func (r GetResult) ExtractInto(v interface{}) error
type InternetGateway ¶
type InternetGateway struct { ID string `json:"id"` Description string `json:"description"` InternetServiceID string `json:"internet_service_id"` Name string `json:"name"` QoSOptionID string `json:"qos_option_id"` Status string `json:"status"` TenantID string `json:"tenant_id"` }
func ExtractInternetGateways ¶
func ExtractInternetGateways(r pagination.Page) ([]InternetGateway, error)
type InternetGatewayPage ¶
type InternetGatewayPage struct {
pagination.LinkedPageBase
}
func (InternetGatewayPage) IsEmpty ¶
func (r InternetGatewayPage) IsEmpty() (bool, error)
func (InternetGatewayPage) NextPageURL ¶
func (r InternetGatewayPage) NextPageURL() (string, error)
type ListOpts ¶
type ListOpts struct { Description string `q:"description"` ID string `q:"id"` InternetServiceID string `q:"internet_service_id"` Name string `q:"name"` QoSOptionID string `q:"qos_option_id"` Status string `q:"status"` TenantID string `q:"tenant_id"` }
func (ListOpts) ToInternetGatewayListQuery ¶
type ListOptsBuilder ¶
type UpdateOpts ¶
type UpdateOpts struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` QoSOptionID *string `json:"qos_option_id,omitempty"` }
func (UpdateOpts) ToInternetGatewayUpdateMap ¶
func (opts UpdateOpts) ToInternetGatewayUpdateMap() (map[string]interface{}, error)
type UpdateOptsBuilder ¶
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
func Update ¶
func Update(c *eclcloud.ServiceClient, internetGatewayID string, opts UpdateOptsBuilder) (r UpdateResult)
func (UpdateResult) Extract ¶
func (r UpdateResult) Extract() (*InternetGateway, error)
func (UpdateResult) ExtractInto ¶
func (r UpdateResult) ExtractInto(v interface{}) error
Click to show internal directories.
Click to hide internal directories.