Documentation ¶
Overview ¶
Package local defines flavor used for VPP agents managed only locally.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAgent ¶ added in v1.0.8
NewAgent returns a new instance of the Agent with plugins. It is an alias for core.NewAgent() to implicit use of the FlavorVppLocal
func WithPlugins ¶ added in v1.0.8
func WithPlugins(listPlugins func(local *FlavorVppLocal) []*core.NamedPlugin) core.WithPluginsOpt
WithPlugins for adding custom plugins to SFC Controller <listPlugins> is a callback that uses flavor input to inject dependencies for custom plugins that are in output
Example:
NewAgent(vppFlavor.WithPlugins(func(flavor) { return []*core.NamedPlugin{{"my-plugin", &MyPlugin{DependencyXY: &flavor.FlavorXY}}} }))
Types ¶
type FlavorVppLocal ¶ added in v1.0.4
type FlavorVppLocal struct { *local.FlavorLocal LinuxLocalClient localclient.Plugin GoVPP govppmux.GOVPPPlugin Linux linux.Plugin VPP vpp.Plugin // contains filtered or unexported fields }
FlavorVppLocal glues together multiple plugins to manage VPP and Linux configuration using the local client.
func (*FlavorVppLocal) Inject ¶ added in v1.0.4
func (f *FlavorVppLocal) Inject() bool
Inject sets inter-plugin references.
func (*FlavorVppLocal) Plugins ¶ added in v1.0.4
func (f *FlavorVppLocal) Plugins() []*core.NamedPlugin
Plugins combines all Plugins in the flavor to a list.
Click to show internal directories.
Click to hide internal directories.