vppcalls

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PuntDetails

type PuntDetails struct {
	PuntData   *punt.Punt
	SocketPath []byte
}

PuntDetails includes proto-modelled punt object and its socket path

type PuntVPPRead

type PuntVPPRead interface {
	// DumpPuntRegisteredSockets returns all punt socket registrations known to the VPP agent
	// TODO since the API to dump sockets is missing, the method works only with the entries in local cache
	DumpPuntRegisteredSockets() (punts []*PuntDetails)
}

PuntVPPRead provides read methods for punt

type PuntVPPWrite

type PuntVPPWrite interface {
	// RegisterPuntSocket registers new punt to unix domain socket entry
	RegisterPuntSocket(puntCfg *punt.Punt) ([]byte, error)
	// DeregisterPuntSocket removes existing punt to socket registration
	DeregisterPuntSocket(puntCfg *punt.Punt) error
	// RegisterPuntSocketIPv6 registers new IPv6 punt to unix domain socket entry
	RegisterPuntSocketIPv6(puntCfg *punt.Punt) ([]byte, error)
	// DeregisterPuntSocketIPv6 removes existing IPv6 punt to socket registration
	DeregisterPuntSocketIPv6(puntCfg *punt.Punt) error
}

PuntVPPWrite provides write methods for punt

type PuntVppAPI

type PuntVppAPI interface {
	PuntVPPWrite
	PuntVPPRead
}

PuntVppAPI provides methods for managing VPP punt configuration.

type PuntVppHandler

type PuntVppHandler struct {
	// contains filtered or unexported fields
}

PuntVppHandler is accessor for punt-related vppcalls methods.

func NewPuntVppHandler

func NewPuntVppHandler(callsChan api.Channel, mapping puntidx.PuntIndex, log logging.Logger) *PuntVppHandler

NewPuntVppHandler creates new instance of punt vppcalls handler

func (*PuntVppHandler) DeregisterPuntSocket

func (h *PuntVppHandler) DeregisterPuntSocket(puntCfg *punt.Punt) error

DeregisterPuntSocket removes existing punt to socket registration

func (*PuntVppHandler) DeregisterPuntSocketIPv6

func (h *PuntVppHandler) DeregisterPuntSocketIPv6(puntCfg *punt.Punt) error

DeregisterPuntSocketIPv6 removes existing IPv6 punt to socket registration

func (*PuntVppHandler) DumpPuntRegisteredSockets

func (h *PuntVppHandler) DumpPuntRegisteredSockets() (punts []*PuntDetails)

DumpPuntRegisteredSockets returns punt to host via registered socket entries TODO since the binary API is not available, all data are read from local cache for now

func (*PuntVppHandler) RegisterPuntSocket

func (h *PuntVppHandler) RegisterPuntSocket(puntCfg *punt.Punt) ([]byte, error)

RegisterPuntSocket registers new punt to socket

func (*PuntVppHandler) RegisterPuntSocketIPv6

func (h *PuntVppHandler) RegisterPuntSocketIPv6(puntCfg *punt.Punt) ([]byte, error)

RegisterPuntSocketIPv6 registers new IPv6 punt to socket

Jump to

Keyboard shortcuts

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