puntplugin

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: 19 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

DefaultPlugin is a default instance of punt plugin.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	infra.PluginDeps
	KVScheduler  kvs.KVScheduler
	VPP          govppmux.API
	IfPlugin     ifplugin.API
	PublishState datasync.KeyProtoValWriter     // optional
	StatusCheck  statuscheck.PluginStatusWriter // optional
}

Deps lists dependencies of the punt plugin.

type Option

type Option func(puntPlugin *PuntPlugin)

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

func UseDeps

func UseDeps(f func(deps *Deps)) Option

UseDeps returns Option that can inject custom dependencies.

type PuntPlugin

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

PuntPlugin configures VPP punt to host or unix domain socket entries and IP redirect entries using GoVPP.

func NewPlugin

func NewPlugin(opts ...Option) *PuntPlugin

NewPlugin creates a new Plugin with the provided Options.

func (*PuntPlugin) AfterInit

func (p *PuntPlugin) AfterInit() error

AfterInit registers plugin with StatusCheck.

func (*PuntPlugin) Init

func (p *PuntPlugin) Init() (err error)

Init registers STN-related descriptors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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