wireguardplugin

package
v3.3.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

Functions

This section is empty.

Types

type Deps

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

type Option

type Option func(*WgPlugin)

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.

type WgPlugin

type WgPlugin struct {
	Deps
	// handler
	WgHandler vppcalls.WgVppAPI
	// contains filtered or unexported fields
}

func NewPlugin

func NewPlugin(opts ...Option) *WgPlugin

NewPlugin creates a new Plugin with the provided Options.

func (*WgPlugin) AfterInit

func (p *WgPlugin) AfterInit() error

AfterInit registers plugin with StatusCheck.

func (*WgPlugin) Init

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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