nat64plugin

package
v0.0.0-...-ae01f8c Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPlugin = *NewPlugin()

DefaultPlugin is a default instance of NAT64Plugin.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	infra.PluginDeps
	KVScheduler kvs.KVScheduler
	VPP         govppmux.API
	IfPlugin    ifplugin.API
}

Deps lists dependencies of the NAT plugin.

type NAT64Plugin

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

NAT64Plugin configures VPP NAT.

func NewPlugin

func NewPlugin(opts ...Option) *NAT64Plugin

NewPlugin creates a new Plugin with the provided Options.

func (*NAT64Plugin) Init

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

Init registers NAT64-related descriptors.

type Option

type Option func(*NAT64Plugin)

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 binary APIs for NAT-64 configuration.
Package vppcalls contains wrappers over VPP binary APIs for NAT-64 configuration.

Jump to

Keyboard shortcuts

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