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.
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.
Click to show internal directories.
Click to hide internal directories.