vppcalls

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Handler = vpp.RegisterHandler(vpp.HandlerDesc{
	Name:       "wireguard",
	HandlerAPI: (*WgVppAPI)(nil),
})

Functions

func AddHandlerVersion

func AddHandlerVersion(version vpp.Version, msgs []govppapi.Message, h NewHandlerFunc)

Types

type NewHandlerFunc

type NewHandlerFunc func(ch govppapi.Channel, ifDdx ifaceidx.IfaceMetadataIndex, log logging.Logger) WgVppAPI

type WgVppAPI

type WgVppAPI interface {
	WgVppRead

	// Set peer via binary API
	AddPeer(peer *wg.Peer) (uint32, error)
	// Remove peer via binary API
	RemovePeer(peer_idx uint32) error
}

func CompatibleWgVppHandler

func CompatibleWgVppHandler(c vpp.Client, ifIdx ifaceidx.IfaceMetadataIndex, log logging.Logger) WgVppAPI

type WgVppRead

type WgVppRead interface {
	// DumpWgPeer returns a peers state
	DumpWgPeers() (peerList []*wg.Peer, err error)
}

WgVPPRead provides read methods for wireguard

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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