Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPlugin = *NewPlugin()
DefaultPlugin is a default instance of IPTablesPlugin.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { linuxcalls.HandlerConfig `json:"handler"` Disabled bool `json:"disabled"` GoRoutinesCnt int `json:"go-routines-count"` }
Config holds the plugin configuration.
type Deps ¶
type Deps struct { infra.PluginDeps KVScheduler kvs.KVScheduler NsPlugin nsplugin.API }
Deps lists dependencies of the plugin.
type IPTablesPlugin ¶
type IPTablesPlugin struct { Deps // contains filtered or unexported fields }
IPTablesPlugin configures Linux iptables rules.
func NewPlugin ¶
func NewPlugin(opts ...Option) *IPTablesPlugin
NewPlugin creates a new Plugin with the provides Options.
func (*IPTablesPlugin) Init ¶
func (p *IPTablesPlugin) Init() error
Init initializes and registers descriptors and handlers for Linux iptables rules.
Click to show internal directories.
Click to hide internal directories.