aclplugin

package
v2.0.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

DefaultPlugin is a default instance of IfPlugin.

Functions

This section is empty.

Types

type ACLPlugin

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

ACLPlugin is a plugin that manages ACLs.

func NewPlugin

func NewPlugin(opts ...Option) *ACLPlugin

NewPlugin creates a new Plugin with the provides Options

func (*ACLPlugin) AfterInit

func (p *ACLPlugin) AfterInit() error

AfterInit initializes extra things.

func (*ACLPlugin) Close

func (p *ACLPlugin) Close() error

Close stops all go routines and frees resources.

func (*ACLPlugin) Init

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

Init initializes ACL plugin.

type Deps

type Deps struct {
	infra.PluginDeps
	Scheduler scheduler.KVScheduler
	GoVppmux  govppmux.API
	IfPlugin  ifplugin.API
}

Deps represents dependencies for the plugin.

type Option

type Option func(*ACLPlugin)

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 ACL binary APIs and helpers to dump ACLs configured in VPP - per interface and total.
Package vppcalls contains wrappers over VPP ACL binary APIs and helpers to dump ACLs configured in VPP - per interface and total.

Jump to

Keyboard shortcuts

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