Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Versions = map[string]HandlerVersion{}
Functions ¶
This section is empty.
Types ¶
type HandlerVersion ¶
type HandlerVersion struct {
Msgs []govppapi.Message
New func(govppapi.Channel, ifaceidx.IfaceMetadataIndex, logging.Logger) PuntVppAPI
}
type PuntDetails ¶
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
DumpRegisteredPuntSockets() ([]*PuntDetails, error)
}
PuntVPPRead provides read methods for punt
type PuntVppAPI ¶
type PuntVppAPI interface {
PuntVPPRead
// AddPunt configures new punt to the host from the VPP
AddPunt(punt *punt.ToHost) error
// DeletePunt removes or unregisters punt entry
DeletePunt(punt *punt.ToHost) error
// RegisterPuntSocket registers new punt to unix domain socket entry
RegisterPuntSocket(puntCfg *punt.ToHost) (string, error)
// DeregisterPuntSocket removes existing punt to socket registration
DeregisterPuntSocket(puntCfg *punt.ToHost) error
// AddPuntRedirect adds new punt IP redirect entry
AddPuntRedirect(punt *punt.IPRedirect) error
// DeletePuntRedirect removes existing redirect entry
DeletePuntRedirect(punt *punt.IPRedirect) error
}
PuntVppAPI provides methods for managing VPP punt configuration.
func CompatiblePuntVppHandler ¶
func CompatiblePuntVppHandler( ch govppapi.Channel, idx ifaceidx.IfaceMetadataIndex, log logging.Logger, ) PuntVppAPI
Click to show internal directories.
Click to hide internal directories.