routing

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectorPrefixes

type ConnectorPrefixes struct {
	NodeName        string   `json:"name"`
	LocalPrefixes   []string `json:"local-prefixes"`
	LocalPrefixes6  []string `json:"local-prefixes6"`
	RemotePrefixes  []string `json:"remote-prefixes"`
	RemotePrefixes6 []string `json:"remote-prefixes6"`
}

type GeneralRouter added in v0.6.0

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

func (GeneralRouter) CleanRoutes added in v0.6.0

func (_ GeneralRouter) CleanRoutes(conns []tunnel.ConnConfig) error

func (GeneralRouter) GetConnectorPrefixes added in v0.6.0

func (r GeneralRouter) GetConnectorPrefixes() (*ConnectorPrefixes, error)

func (GeneralRouter) SyncRoutes added in v0.6.0

func (_ GeneralRouter) SyncRoutes(connections []tunnel.ConnConfig) error

type Routing

type Routing interface {
	SyncRoutes(connections []tunnel.ConnConfig) error
	CleanRoutes(connections []tunnel.ConnConfig) error
	GetConnectorPrefixes() (*ConnectorPrefixes, error)
}

func GetRouter

func GetRouter(cni string) (Routing, error)

Jump to

Keyboard shortcuts

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