enforcer

package
v1.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	Table       string
	ParentChain string
	Prefix      string
}

type Enforcer

type Enforcer struct {
	Logger lager.Logger
	// contains filtered or unexported fields
}

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

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL