Documentation ¶
Index ¶
- Variables
- type ACLCache
- func (c *ACLCache) AddRule(rule policy.IPRule) (err error)
- func (c *ACLCache) AddRuleList(rules policy.IPRuleList) (err error)
- func (c *ACLCache) GetMatchingAction(ip net.IP, port uint16) (report *policy.FlowPolicy, packet *policy.FlowPolicy, err error)
- func (c *ACLCache) RemoveIPMask(ip net.IP, mask int)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMatch = errors.New("No Match")
ErrNoMatch is error returned when no match is found.
Functions ¶
This section is empty.
Types ¶
type ACLCache ¶
type ACLCache struct {
// contains filtered or unexported fields
}
ACLCache holds all the ACLS in an internal DB map[prefixes][subnets] -> list of ports with their actions
func (*ACLCache) AddRuleList ¶
func (c *ACLCache) AddRuleList(rules policy.IPRuleList) (err error)
AddRuleList adds a list of rules to the cache
func (*ACLCache) GetMatchingAction ¶
func (c *ACLCache) GetMatchingAction(ip net.IP, port uint16) (report *policy.FlowPolicy, packet *policy.FlowPolicy, err error)
GetMatchingAction gets the matching action
Click to show internal directories.
Click to hide internal directories.