srplugin

package
v2.5.0-alpha.0...-0e2148d Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

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
vpp1904
Package vpp1904 contains wrappers over VPP (version 19.01) binary APIs to simplify their usage
Package vpp1904 contains wrappers over VPP (version 19.01) binary APIs to simplify their usage
vpp1908
Package vpp1908 contains wrappers over VPP (version 19.01) binary APIs to simplify their usage
Package vpp1908 contains wrappers over VPP (version 19.01) binary APIs to simplify their usage
vpp2001
Package vpp2001_379 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
Package vpp2001_379 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
vpp2001_324
Package vpp2001_324 contains wrappers over VPP (version 20.01) binary APIs to simplify their usage
Package vpp2001_324 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