Documentation ¶
Overview ¶
Package ipfilter provides IPFilter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPFilter ¶
type IPFilter struct {
// contains filtered or unexported fields
}
IPFilter is the IP filter.
type IPFilters ¶
type IPFilters struct {
// contains filtered or unexported fields
}
IPFilters is the wrapper for multiple IPFilters.
func NewIPFilterChain ¶
NewIPFilterChain returns nil if the number of final filters is zero.
func NewIPFilters ¶
NewIPFilters creates an IPFilters
type Spec ¶
type Spec struct { BlockByDefault bool `json:"blockByDefault,omitempty"` AllowIPs []string `json:"allowIPs,omitempty" jsonschema:"uniqueItems=true,format=ipcidr-array"` BlockIPs []string `json:"blockIPs,omitempty" jsonschema:"uniqueItems=true,format=ipcidr-array"` }
Spec describes IPFilter.
Click to show internal directories.
Click to hide internal directories.