abfplugin

package
v2.5.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

DefaultPlugin is a default instance of ABFPlugin.

Functions

This section is empty.

Types

type ABFPlugin

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

ABFPlugin is a plugin that manages ACL-based forwarding.

func NewPlugin

func NewPlugin(opts ...Option) *ABFPlugin

NewPlugin creates a new Plugin with the provides Options

func (*ABFPlugin) AfterInit

func (p *ABFPlugin) AfterInit() error

AfterInit registers plugin with StatusCheck.

func (*ABFPlugin) Init

func (p *ABFPlugin) Init() error

Init initializes ABF plugin.

type Deps

type Deps struct {
	infra.PluginDeps
	Scheduler   kvs.KVScheduler
	GoVppmux    govppmux.API
	ACLPlugin   aclplugin.API
	IfPlugin    ifplugin.API
	StatusCheck statuscheck.PluginStatusWriter // optional
}

Deps represents dependencies for the plugin.

type Option

type Option func(plugin *ABFPlugin)

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.

Directories

Path Synopsis
Package vppcalls contains wrappers over VPP ABF binary APIs and helpers to dump ABFs configured in VPP
Package vppcalls contains wrappers over VPP ABF binary APIs and helpers to dump ABFs configured in VPP

Jump to

Keyboard shortcuts

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