route

package
v0.0.0-...-f021cd2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

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

Table represents a routing table. Table can safely be used concurrently.

func NewTable

func NewTable() *Table

NewTable generates a new table.

func (*Table) CleanUp

func (t *Table) CleanUp() error

CleanUp will clean up any routes and rules created by the instance.

func (*Table) Run

func (t *Table) Run(stop <-chan struct{}) (<-chan error, error)

Run watches for changes to routes and rules in the table and reconciles the table against the desired state.

func (*Table) Set

func (t *Table) Set(routes []*netlink.Route, rules []*netlink.Rule) error

Set idempotently overwrites any routes and rules previously defined for the table with the given set of routes and rules.

Jump to

Keyboard shortcuts

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