srplugin

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

DefaultPlugin is a default instance of SRPlugin.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	infra.PluginDeps
	Scheduler   scheduler.KVScheduler
	VPP         govppmux.API
	IfPlugin    ifplugin.API
	StatusCheck statuscheck.PluginStatusWriter // optional
}

type Option

type Option func(*SRPlugin)

Option is a function that can be used in NewPlugin to customize Plugin.

func UseDeps

func UseDeps(f func(*Deps)) Option

UseDeps returns Option that can inject custom dependencies.

type SRPlugin

type SRPlugin struct {
	Deps
	// contains filtered or unexported fields
}

SRPlugin configures segment routing.

func NewPlugin

func NewPlugin(opts ...Option) *SRPlugin

NewPlugin creates a new Plugin with the provides Options

func (*SRPlugin) AfterInit

func (p *SRPlugin) AfterInit() error

AfterInit registers plugin with StatusCheck.

func (*SRPlugin) Init

func (p *SRPlugin) Init() error

Init initializes and registers descriptors for Linux ARPs and Routes.

Directories

Path Synopsis
vpp2101
Package vpp2101_379 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
Package vpp2101_379 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
vpp2106
Package vpp2106_379 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
Package vpp2106_379 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
vpp2202
Package vpp2202 contains wrappers over VPP binary APIs to simplify their usage
Package vpp2202 contains wrappers over VPP binary APIs to simplify their usage
vpp2210
Package vpp2210 contains wrappers over VPP binary APIs to simplify their usage
Package vpp2210 contains wrappers over VPP binary APIs to simplify their usage

Jump to

Keyboard shortcuts

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