github.com/aporeto-inc/trireme-lib@v10.358.0+incompatible/controller/internal/supervisor/iptablesctrl/comparators.go (about) 1 package iptablesctrl 2 3 import "go.aporeto.io/enforcerd/trireme-lib/policy" 4 5 func testObserveContinue(p *policy.FlowPolicy) bool { 6 return p.ObserveAction.ObserveContinue() 7 } 8 9 func testNotObserved(p *policy.FlowPolicy) bool { 10 return !p.ObserveAction.Observed() 11 } 12 13 func testObserveApply(p *policy.FlowPolicy) bool { 14 return p.ObserveAction.ObserveApply() 15 } 16 17 func testReject(p *policy.FlowPolicy) bool { 18 return (p.Action&policy.Reject != 0) 19 } 20 21 func testAccept(p *policy.FlowPolicy) bool { 22 return (p.Action&policy.Accept != 0) 23 }