Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIptablesNotFound = errors.New("[iptables] Binary not found") ErrIptablesSnat = errors.New("[iptables] Error when inserting SNAT rule") ErrIptablesRule = errors.New("[iptables] Error adding rule") )
View Source
var ( ADD = "-A" DEL = "-D" )
Defines iptables actions
Functions ¶
This section is empty.
Types ¶
type IptablesMngr ¶
func New ¶
func New(config *config.BalancerConfig) (*IptablesMngr, error)
Click to show internal directories.
Click to hide internal directories.