gateway_interfaces

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2021 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

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)

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 CreateOptsBuilder interface {
	ToGatewayInterfaceCreateMap() (map[string]interface{}, error)
}

type CreateResult

type CreateResult struct {
	// contains filtered or unexported fields
}

func (CreateResult) Extract

func (r CreateResult) Extract() (*GatewayInterface, error)

func (CreateResult) ExtractInto

func (r CreateResult) ExtractInto(v interface{}) error

type DeleteResult

type DeleteResult struct {
	eclcloud.ErrResult
}

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 Get

func Get(c *eclcloud.ServiceClient, gatewayInterfaceID string) (r GetResult)

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

func (opts ListOpts) ToGatewayInterfaceListQuery() (string, error)

type ListOptsBuilder

type ListOptsBuilder interface {
	ToGatewayInterfaceListQuery() (string, error)
}

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 UpdateOptsBuilder interface {
	ToGatewayInterfaceUpdateMap() (map[string]interface{}, error)
}

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

Directories

Path Synopsis
gateway_interfaces unit tests
gateway_interfaces unit tests

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL