Documentation ¶
Index ¶
- type PuntConfigurator
- func (c *PuntConfigurator) Add(puntVal *punt.Punt) error
- func (c *PuntConfigurator) Close() error
- func (c *PuntConfigurator) Delete(puntVal *punt.Punt) error
- func (c *PuntConfigurator) GetPuntIndexes() puntidx.PuntIndexRW
- func (c *PuntConfigurator) Init(logger logging.PluginLogger, goVppMux govppmux.API) (err error)
- func (c *PuntConfigurator) LogError(err error) error
- func (c *PuntConfigurator) Modify(oldPunt, newPunt *punt.Punt) error
- func (c *PuntConfigurator) Resync(punts []*punt.Punt) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PuntConfigurator ¶
type PuntConfigurator struct {
// contains filtered or unexported fields
}
PuntConfigurator registers/de-registers punt to host via unix domain socket. Registered items are stored in the cache.
func (*PuntConfigurator) Add ¶
func (c *PuntConfigurator) Add(puntVal *punt.Punt) error
Add configures new punt to host via socket and stores it in the local mapping. Depending on L3 protocol setup, IPv4, IPv6 or both punts are registered
func (*PuntConfigurator) Delete ¶
func (c *PuntConfigurator) Delete(puntVal *punt.Punt) error
Delete the configuration of a punt
func (*PuntConfigurator) GetPuntIndexes ¶
func (c *PuntConfigurator) GetPuntIndexes() puntidx.PuntIndexRW
GetPuntIndexes exposes punt name-to-index mapping
func (*PuntConfigurator) Init ¶
func (c *PuntConfigurator) Init(logger logging.PluginLogger, goVppMux govppmux.API) (err error)
Init logger, VPP channel, VPP API handler and cache
func (*PuntConfigurator) LogError ¶
func (c *PuntConfigurator) LogError(err error) error
LogError prints error if not nil, including stack trace. The same value is also returned, so it can be easily propagated further
Click to show internal directories.
Click to hide internal directories.