route

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

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

Types

type CreateOpts

type CreateOpts struct {
	RouteTableId string `json:"-" required:"true"`
	Destination  string `json:"destination" required:"true"`
	AttachmentId string `json:"attachment_id,omitempty"`
	IsBlackhole  *bool  `json:"is_blackhole,omitempty"`
}

type EffectiveRoute

type EffectiveRoute struct {
	RouteId        string            `json:"route_id"`
	Destination    string            `json:"destination"`
	NextHops       []RouteAttachment `json:"next_hops"`
	IsBlackhole    bool              `json:"is_blackhole"`
	RouteType      string            `json:"route_type"`
	AddressGroupId string            `json:"address_group_id"`
}

type ListOpts

type ListOpts struct {
	RouteTableId string   `json:"-"`
	Marker       string   `q:"marker"`
	Limit        int      `q:"limit"`
	Destination  []string `q:"destination"`
	ResourceType []string `q:"resource_type"`
}

type ListRoutes

type ListRoutes struct {
	Routes    []EffectiveRoute `json:"routes"`
	PageInfo  *PageInfo        `json:"page_info"`
	RequestId string           `json:"request_id"`
}

func List

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

type ListStaticOpts

type ListStaticOpts struct {
	RouteTableId string   `json:"-"`
	Marker       string   `q:"marker"`
	Limit        int      `q:"limit"`
	Destination  []string `q:"destination"`
	AttachmentId []string `q:"attachment_id"`
	ResourceType []string `q:"resource_type"`
	SortKey      []string `q:"sort_key"`
	SortDir      []string `q:"sort_dir"`
}

type ListStaticRoutes

type ListStaticRoutes struct {
	Routes    []Route   `json:"routes"`
	PageInfo  *PageInfo `json:"page_info"`
	RequestId string    `json:"request_id"`
}

func ListStatic

func ListStatic(client *golangsdk.ServiceClient, opts ListStaticOpts) (*ListStaticRoutes, error)

type PageInfo

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

type Route

type Route struct {
	ID           string            `json:"id"`
	Type         string            `json:"type"`
	State        string            `json:"state"`
	IsBlackhole  bool              `json:"is_blackhole"`
	Destination  string            `json:"destination"`
	RouteTableId string            `json:"route_table_id"`
	CreatedAt    string            `json:"created_at"`
	UpdatedAt    string            `json:"updated_at"`
	Attachments  []RouteAttachment `json:"attachments"`
}

func Create

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

func Get

func Get(client *golangsdk.ServiceClient, routeTableId, routeId string) (*Route, error)

func Update

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

type RouteAttachment

type RouteAttachment struct {
	ResourceId   string `json:"resource_id"`
	ResourceType string `json:"resource_type"`
	AttachmentId string `json:"attachment_id"`
}

type UpdateOpts

type UpdateOpts struct {
	RouteTableId string `json:"-"`
	RouteId      string `json:"-"`
	AttachmentId string `json:"attachment_id,omitempty"`
	IsBlackhole  *bool  `json:"is_blackhole,omitempty"`
}

Jump to

Keyboard shortcuts

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