Documentation ¶
Index ¶
- func Ips(cidr string) ([]string, error)
- type IPRanger
- func (ir *IPRanger) Add(host string) error
- func (ir *IPRanger) AddHostWithMetadata(host, metadata string) error
- func (ir *IPRanger) Close() error
- func (ir *IPRanger) Contains(host string) bool
- func (ir *IPRanger) ContainsAll(hosts ...string) bool
- func (ir *IPRanger) ContainsAny(hosts ...string) bool
- func (ir *IPRanger) Delete(host string) error
- func (ir *IPRanger) GetHostsByIP(IP string) ([]string, error)
- func (ir *IPRanger) HasIP(IP string) bool
- func (ir *IPRanger) IsValid(host string) bool
- func (ir *IPRanger) Shrink() error
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPRanger ¶
type IPRanger struct { sync.RWMutex Np *networkpolicy.NetworkPolicy Hosts *hybrid.HybridMap Stats Stats CoalescedIPV4 []*net.IPNet CoalescedIPV6 []*net.IPNet // contains filtered or unexported fields }
func (*IPRanger) AddHostWithMetadata ¶ added in v0.0.3
func (*IPRanger) ContainsAll ¶ added in v0.0.3
func (*IPRanger) ContainsAny ¶ added in v0.0.3
func (*IPRanger) GetHostsByIP ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.