static_routes

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

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

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 Get

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

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

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

type ListOptsBuilder

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

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

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

Directories

Path Synopsis
public_ips unit tests
public_ips unit tests

Jump to

Keyboard shortcuts

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