Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Enforcer ¶
func NewEnforcer ¶
func NewEnforcer(logger lager.Logger, timestamper TimeStamper, ipt rules.IPTablesAdapter) *Enforcer
func (*Enforcer) Enforce ¶
func (e *Enforcer) Enforce(table, parentChain, chainPrefix string, rulespec ...rules.IPTablesRule) error
func (*Enforcer) EnforceOnChain ¶
func (e *Enforcer) EnforceOnChain(c Chain, rules []rules.IPTablesRule) error
func (*Enforcer) EnforceRulesAndChain ¶
func (e *Enforcer) EnforceRulesAndChain(rulesAndChain RulesWithChain) error
type RulesWithChain ¶
type RulesWithChain struct { Chain Chain Rules []rules.IPTablesRule }
func (*RulesWithChain) Equals ¶ added in v0.12.0
func (r *RulesWithChain) Equals(other RulesWithChain) bool
type TimeStamper ¶
type TimeStamper interface {
CurrentTime() int
}
type Timestamper ¶
type Timestamper struct{}
func (Timestamper) CurrentTime ¶
func (_ Timestamper) CurrentTime() int
Click to show internal directories.
Click to hide internal directories.