{"modulePath":"github.com/emnify/vpp-agent","version":"v1.4.1","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package linuxplugin\n\nPackage linuxplugin implements the Linux plugin that handles management of Linux VETH interfaces.\n\n## Types\n\n```go\ntype API interface {\n\t// GetLinuxIfIndexes gives access to mapping of logical names (used in ETCD configuration)\n\t// to corresponding Linux interface indexes. This mapping is especially helpful\n\t// for plugins that need to watch for newly added or deleted Linux interfaces.\n\tGetLinuxIfIndexes() ifaceidx.LinuxIfIndex\n\n\t// GetLinuxIfIndexes gives access to mapping of logical names (used in ETCD configuration) to corresponding Linux\n\t// ARP entry indexes. This mapping is especially helpful for plugins that need to watch for newly added or deleted\n\t// Linux ARP entries.\n\tGetLinuxARPIndexes() l3idx.LinuxARPIndex\n\n\t// GetLinuxIfIndexes gives access to mapping of logical names (used in ETCD configuration) to corresponding Linux\n\t// route indexes. This mapping is especially helpful for plugins that need to watch for newly added or deleted\n\t// Linux routes.\n\tGetLinuxRouteIndexes() l3idx.LinuxRouteIndex\n}\n```\nAPI of Linux Plugin\n\n```go\ntype DataResyncReq struct {\n\t// Interfaces is a list af all interfaces that are expected to be in Linux after RESYNC.\n\tInterfaces []*interfaces.LinuxInterfaces_Interface\n\t// ARPs is a list af all arp entries that are expected to be in Linux after RESYNC.\n\tARPs []*l3.LinuxStaticArpEntries_ArpEntry\n\t// Routes is a list af all routes that are expected to be in Linux after RESYNC.\n\tRoutes []*l3.LinuxStaticRoutes_Route\n}\n```\nDataResyncReq is used to transfer expected configuration of the Linux network stack to the plugins.\n\n```go\nfunc NewDataResyncReq() *DataResyncReq\n```\nNewDataResyncReq is a constructor of object requirements which are expected to be re-synced.\n\n```go\ntype Deps struct {\n\tlocal.PluginInfraDeps                             // injected\n\tWatcher               datasync.KeyValProtoWatcher // injected\n\tWatchEventsMutex      *sync.Mutex\n}\n```\nDeps groups injected dependencies of plugin so that they do not mix with other plugin fields.\n\n```go\ntype LinuxConfig struct {\n\tStopwatch bool `json:\"Stopwatch\"`\n}\n```\nLinuxConfig holds the linuxplugin configuration.\n\n```go\ntype Plugin struct {\n\tDeps\n\t// contains filtered or unexported fields\n}\n```\nPlugin implements Plugin interface, therefore it can be loaded with other plugins.\n\n```go\nfunc (plugin *Plugin) Close() error\n```\nClose cleans up the resources.\n\n```go\nfunc (plugin *Plugin) GetLinuxARPIndexes() l3idx.LinuxARPIndex\n```\nGetLinuxARPIndexes gives access to mapping of logical names (used in ETCD configuration) to corresponding Linux ARP entry indexes.\n\n```go\nfunc (plugin *Plugin) GetLinuxIfIndexes() ifaceidx.LinuxIfIndex\n```\nGetLinuxIfIndexes gives access to mapping of logical names (used in ETCD configuration) interface indexes.\n\n```go\nfunc (plugin *Plugin) GetLinuxRouteIndexes() l3idx.LinuxRouteIndex\n```\nGetLinuxRouteIndexes gives access to mapping of logical names (used in ETCD configuration) to corresponding Linux route indexes.\n\n```go\nfunc (plugin *Plugin) Init() error\n```\nInit gets handlers for ETCD and Kafka and delegates them to ifConfigurator.\n\n","path":"github.com/emnify/vpp-agent/plugins/linuxplugin","name":"linuxplugin","synopsis":"Package linuxplugin implements the Linux plugin that handles management of Linux VETH interfaces.","isRedistributable":true}
