local

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

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

func NewAgent(opts ...core.Option) *core.Agent

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.

Jump to

Keyboard shortcuts

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