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 IPTables) *Enforcer
type GenericRule ¶
type GenericRule struct {
Properties []string
}
type IPTables ¶
type IPTables interface {
Exists(table, chain string, rulespec ...string) (bool, error)
Insert(table, chain string, pos int, rulespec ...string) error
AppendUnique(table, chain string, rulespec ...string) error
Delete(table, chain string, rulespec ...string) error
List(table, chain string) ([]string, error)
NewChain(table, chain string) error
ClearChain(table, chain string) error
DeleteChain(table, chain string) error
}
type RuleEnforcer ¶
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.