Documentation
¶
Overview ¶
Package acl implements ordered IP/CIDR access-control lists. Each rule is either "allow <CIDR>" or "deny <CIDR>"; rules are evaluated in order and the first matching rule decides. When a list has any rules, the default policy is denied (an address matching no rule is rejected). An empty/nil list allows everything, preserving the previous open behaviour.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
List is a compiled, ordered access-control list. A nil *List allows all.
func Compile ¶
Compile parses a slice of "allow <CIDR>" / "deny <CIDR>" strings into a List. A nil or empty input yields a nil List (allow all). Invalid entries produce an error and the offending rule text.
Click to show internal directories.
Click to hide internal directories.