Documentation ¶
Index ¶
- Constants
- type CallBackFunc
- type IPFamily
- type IPSetMetadata
- type IPSetType
- type IPSets
- func (s *IPSets) AddMembers(setID string, newMembers []string)
- func (s *IPSets) AddOrReplaceIPSet(setMetadata IPSetMetadata, members []string)
- func (m *IPSets) ApplyDeletions() bool
- func (m *IPSets) ApplyUpdates()
- func (m *IPSets) GetDesiredMembers(setID string) (set.Set[string], error)
- func (s *IPSets) GetIPFamily() IPFamily
- func (s *IPSets) GetIPSetMembers(setID string) []string
- func (m *IPSets) GetTypeOf(setID string) (IPSetType, error)
- func (s *IPSets) QueueResync()
- func (s *IPSets) RemoveIPSet(setID string)
- func (s *IPSets) RemoveMembers(setID string, removedMembers []string)
- func (s *IPSets) SetCallback(callback CallBackFunc)
- func (s *IPSets) SetFilter(ipSetNames set.Set[string])
- type IPVersionConfig
Constants ¶
View Source
const ( IPFamilyV4 = ipsets.IPFamilyV4 IPFamilyV6 = ipsets.IPFamilyV6 )
View Source
const (
IPSetTypeHashIPPort = ipsets.IPSetTypeHashIPPort
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallBackFunc ¶
type CallBackFunc func(ipSetId string)
type IPSetMetadata ¶
type IPSetMetadata = ipsets.IPSetMetadata
type IPSets ¶
type IPSets struct { IPVersionConfig *IPVersionConfig // contains filtered or unexported fields }
IPSets manages a whole plane of IP sets, i.e. all the IPv4 sets, or all the IPv6 IP sets.
func NewIPSets ¶
func NewIPSets(ipVersionConfig *IPVersionConfig) *IPSets
func (*IPSets) AddMembers ¶
AddMembers adds a range of new members to an existing IP set in the store
func (*IPSets) AddOrReplaceIPSet ¶
func (s *IPSets) AddOrReplaceIPSet(setMetadata IPSetMetadata, members []string)
AddOrReplaceIPSet is responsible for the creation (or replacement) of an IP set in the store
func (*IPSets) ApplyDeletions ¶
func (*IPSets) ApplyUpdates ¶
func (m *IPSets) ApplyUpdates()
func (*IPSets) GetDesiredMembers ¶
func (*IPSets) GetIPFamily ¶
func (*IPSets) GetIPSetMembers ¶
GetIPSetMembers returns all of the members for a given IP set
func (*IPSets) QueueResync ¶
func (s *IPSets) QueueResync()
The following functions are no-ops on Windows.
func (*IPSets) RemoveIPSet ¶
RemoveIPSet is responsible for the removal of an IP set from the store
func (*IPSets) RemoveMembers ¶
RemoveMembers removes a range of members from an existing IP set in the store
func (*IPSets) SetCallback ¶
func (s *IPSets) SetCallback(callback CallBackFunc)
type IPVersionConfig ¶
type IPVersionConfig struct {
Family IPFamily
}
IPVersionConfig wraps up the metadata for a particular IP version.
func NewIPVersionConfig ¶
func NewIPVersionConfig(family IPFamily) *IPVersionConfig
Click to show internal directories.
Click to hide internal directories.