Documentation
¶
Index ¶
- func ExtractStaticRoutesInto(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 StaticRoute
- type StaticRoutePage
- type UpdateOpts
- type UpdateOptsBuilder
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractStaticRoutesInto ¶
func ExtractStaticRoutesInto(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 {
AwsGwID string `json:"aws_gw_id,omitempty"`
AzureGwID string `json:"azure_gw_id,omitempty"`
Description string `json:"description"`
Destination string `json:"destination" required:"true"`
FICGatewayID string `json:"fic_gw_id"`
GcpGwID string `json:"gcp_gw_id,omitempty"`
InterdcGwID string `json:"inter_dc_id,omitempty"`
InternetGwID string `json:"internet_gw_id,omitempty"`
Name string `json:"name"`
Nexthop string `json:"nexthop" required:"true"`
ServiceType string `json:"service_type" required:"true"`
TenantID string `json:"tenant_id,omitempty"`
VpnGwID string `json:"vpn_gw_id,omitempty"`
}
func (CreateOpts) ToStaticRouteCreateMap ¶
func (opts CreateOpts) ToStaticRouteCreateMap() (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() (*StaticRoute, error)
func (CreateResult) ExtractInto ¶
func (r CreateResult) ExtractInto(v interface{}) error
type DeleteResult ¶
func Delete ¶
func Delete(c *eclcloud.ServiceClient, publicIPID string) (r DeleteResult)
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func (GetResult) Extract ¶
func (r GetResult) Extract() (*StaticRoute, error)
func (GetResult) ExtractInto ¶
func (r GetResult) ExtractInto(v interface{}) error
type ListOpts ¶
type ListOpts struct {
AwsGwID string `q:"aws_gw_id"`
AzureGwID string `q:"azure_gw_id"`
Description string `q:"description"`
Destination string `q:"destination"`
FICGatewayID string `q:"fic_gw_id"`
GcpGwID string `q:"gcp_gw_id"`
ID string `q:"id"`
InterdcGwID string `q:"inter_dc_id"`
InternetGwID string `q:"internet_gw_id"`
Name string `q:"name"`
Nexthop string `q:"nexthop"`
ServiceType string `q:"service_type"`
Status string `q:"status"`
TenantID string `q:"tenant_id"`
VpnGwID string `q:"vpn_gw_id"`
}
func (ListOpts) ToStaticRouteListQuery ¶
type ListOptsBuilder ¶
type StaticRoute ¶
type StaticRoute struct {
AwsGwID string `json:"aws_gw_id"`
AzureGwID string `json:"azure_gw_id"`
Description string `json:"description"`
Destination string `json:"destination"`
FICGatewayID string `json:"fic_gw_id"`
GcpGwID string `json:"gcp_gw_id"`
ID string `json:"id"`
InterdcGwID string `json:"interdc_gw_id"`
InternetGwID string `json:"internet_gw_id"`
Name string `json:"name"`
Nexthop string `json:"nexthop"`
ServiceType string `json:"service_type"`
Status string `json:"status"`
TenantID string `json:"tenant_id"`
VpnGwID string `json:"vpn_gw_id"`
}
func ExtractStaticRoutes ¶
func ExtractStaticRoutes(r pagination.Page) ([]StaticRoute, error)
type StaticRoutePage ¶
type StaticRoutePage struct {
pagination.LinkedPageBase
}
func (StaticRoutePage) IsEmpty ¶
func (r StaticRoutePage) IsEmpty() (bool, error)
func (StaticRoutePage) NextPageURL ¶
func (r StaticRoutePage) NextPageURL() (string, error)
type UpdateOpts ¶
type UpdateOpts struct {
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty"`
}
func (UpdateOpts) ToStaticRouteUpdateMap ¶
func (opts UpdateOpts) ToStaticRouteUpdateMap() (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) Extract ¶
func (r UpdateResult) Extract() (*StaticRoute, error)
func (UpdateResult) ExtractInto ¶
func (r UpdateResult) ExtractInto(v interface{}) error
Click to show internal directories.
Click to hide internal directories.