route_table

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(client *golangsdk.ServiceClient, erId, routeTableId string) (err error)

Types

type BgpOptions

type BgpOptions struct {
	LoadBalancingAsPathIgnore *bool `json:"load_balancing_as_path_ignore,omitempty"`
	LoadBalancingAsPathRelax  *bool `json:"load_balancing_as_path_relax,omitempty"`
}

type CreateOpts

type CreateOpts struct {
	RouterID    string  `json:"-" required:"true"`
	Name        string  `json:"name" required:"true"`
	Description *string `json:"description,omitempty"`
	// parameter not supported ☻
	// BgpOptions  *BgpOptions        `json:"bgp_options,omitempty"`
	Tags []tags.ResourceTag `json:"tags,omitempty"`
}

type ListOpts

type ListOpts struct {
	RouterId string   `json:"-"`
	Marker   string   `q:"marker"`
	Limit    int      `q:"limit"`
	State    []string `q:"state"`
	SortKey  []string `q:"sort_key"`
	SortDir  []string `q:"sort_dir"`
}

type ListRouteTables

type ListRouteTables struct {
	RouteTables []RouteTable `json:"route_tables"`
	PageInfo    *PageInfo    `json:"page_info"`
	RequestId   string       `json:"request_id"`
}

func List

func List(client *golangsdk.ServiceClient, opts ListOpts) (*ListRouteTables, error)

type PageInfo

type PageInfo struct {
	NextMarker   string `json:"next_marker"`
	CurrentCount int    `json:"current_count"`
}

type RouteTable

type RouteTable struct {
	ID                   string             `json:"id"`
	Name                 string             `json:"name"`
	Description          string             `json:"description"`
	IsDefaultAssociation bool               `json:"is_default_association"`
	IsDefaultPropagation bool               `json:"is_default_propagation"`
	State                string             `json:"state"`
	Tags                 []tags.ResourceTag `json:"tags"`
	BgpOptions           *BgpOptions        `json:"bgp_options"`
	CreatedAt            string             `json:"created_at"`
	UpdatedAt            string             `json:"updated_at"`
}

func Create

func Create(client *golangsdk.ServiceClient, opts CreateOpts) (*RouteTable, error)

func Get

func Get(client *golangsdk.ServiceClient, erID, routeTableId string) (*RouteTable, error)

func Update

func Update(client *golangsdk.ServiceClient, opts UpdateOpts) (*RouteTable, error)

type UpdateOpts

type UpdateOpts struct {
	RouterID     string  `json:"-"`
	RouteTableId string  `json:"-"`
	Name         string  `json:"name,omitempty"`
	Description  *string `json:"description,omitempty"`
}

Jump to

Keyboard shortcuts

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