srplugin

package
v3.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 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
vpp2005
Package vpp2005_379 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
Package vpp2005_379 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
vpp2009
Package vpp2009_379 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
Package vpp2009_379 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
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

Jump to

Keyboard shortcuts

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