Documentation
¶
Index ¶
- func ExtractGatewayInterfacesInto(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 GatewayInterface
- type GatewayInterfacePage
- type GetResult
- type ListOpts
- type ListOptsBuilder
- type UpdateOpts
- type UpdateOptsBuilder
- type UpdateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractGatewayInterfacesInto ¶
func ExtractGatewayInterfacesInto(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"`
FICGatewayID string `json:"fic_gw_id,omitempty"`
GcpGwID string `json:"gcp_gw_id,omitempty"`
GwVipv4 string `json:"gw_vipv4" required:"true"`
InterdcGwID string `json:"interdc_gw_id,omitempty"`
InternetGwID string `json:"internet_gw_id,omitempty"`
Name string `json:"name"`
Netmask int `json:"netmask" required:"true"`
NetworkID string `json:"network_id" required:"true"`
PrimaryIpv4 string `json:"primary_ipv4" required:"true"`
SecondaryIpv4 string `json:"secondary_ipv4" required:"true"`
ServiceType string `json:"service_type" required:"true"`
TenantID string `json:"tenant_id,omitempty"`
VpnGwID string `json:"vpn_gw_id,omitempty"`
VRID int `json:"vrid" required:"true"`
}
func (CreateOpts) ToGatewayInterfaceCreateMap ¶
func (opts CreateOpts) ToGatewayInterfaceCreateMap() (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() (*GatewayInterface, error)
func (CreateResult) ExtractInto ¶
func (r CreateResult) ExtractInto(v interface{}) error
type DeleteResult ¶
func Delete ¶
func Delete(c *eclcloud.ServiceClient, gatewayInterfaceID string) (r DeleteResult)
type GatewayInterface ¶
type GatewayInterface struct {
AwsGwID string `json:"aws_gw_id"`
AzureGwID string `json:"azure_gw_id"`
Description string `json:"description"`
FICGatewayID string `json:"fic_gw_id"`
GcpGwID string `json:"gcp_gw_id"`
GwVipv4 string `json:"gw_vipv4"`
GwVipv6 string `json:"gw_vipv6"`
ID string `json:"id"`
InterdcGwID string `json:"interdc_gw_id"`
InternetGwID string `json:"internet_gw_id"`
Name string `json:"name"`
Netmask int `json:"netmask"`
NetworkID string `json:"network_id"`
PrimaryIpv4 string `json:"primary_ipv4"`
PrimaryIpv6 string `json:"primary_ipv6"`
SecondaryIpv4 string `json:"secondary_ipv4"`
SecondaryIpv6 string `json:"secondary_ipv6"`
ServiceType string `json:"service_type"`
Status string `json:"status"`
TenantID string `json:"tenant_id"`
VpnGwID string `json:"vpn_gw_id"`
VRID int `json:"vrid"`
}
func ExtractGatewayInterfaces ¶
func ExtractGatewayInterfaces(r pagination.Page) ([]GatewayInterface, error)
type GatewayInterfacePage ¶
type GatewayInterfacePage struct {
pagination.LinkedPageBase
}
func (GatewayInterfacePage) IsEmpty ¶
func (r GatewayInterfacePage) IsEmpty() (bool, error)
func (GatewayInterfacePage) NextPageURL ¶
func (r GatewayInterfacePage) NextPageURL() (string, error)
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
func (GetResult) Extract ¶
func (r GetResult) Extract() (*GatewayInterface, 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"`
FICGatewayID string `q:"fic_gw_id"`
GcpGwID string `q:"gcp_gw_id"`
GwVipv4 string `q:"gw_vipv4"`
GwVipv6 string `q:"gw_vipv6"`
ID string `q:"id"`
InterdcGwID string `q:"interdc_gw_id"`
InternetGwID string `q:"internet_gw_id"`
Name string `q:"name"`
Netmask int `q:"netmask"`
NetworkID string `q:"network_id"`
PrimaryIpv4 string `q:"primary_ipv4"`
PrimaryIpv6 string `q:"primary_ipv6"`
SecondaryIpv4 string `q:"secondary_ipv4"`
SecondaryIpv6 string `q:"secondary_ipv6"`
ServiceType string `q:"service_type"`
Status string `q:"status"`
TenantID string `q:"tenant_id"`
VpnGwID string `q:"vpn_gw_id"`
VRID int `q:"vrid"`
}
func (ListOpts) ToGatewayInterfaceListQuery ¶
type ListOptsBuilder ¶
type UpdateOpts ¶
type UpdateOpts struct {
Description *string `json:"description,omitempty"`
Name *string `json:"name,omitempty"`
}
func (UpdateOpts) ToGatewayInterfaceUpdateMap ¶
func (opts UpdateOpts) ToGatewayInterfaceUpdateMap() (map[string]interface{}, error)
type UpdateOptsBuilder ¶
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
func Update ¶
func Update(c *eclcloud.ServiceClient, gatewayInterfaceID string, opts UpdateOptsBuilder) (r UpdateResult)
func (UpdateResult) Extract ¶
func (r UpdateResult) Extract() (*GatewayInterface, error)
func (UpdateResult) ExtractInto ¶
func (r UpdateResult) ExtractInto(v interface{}) error
Click to show internal directories.
Click to hide internal directories.