Documentation ¶
Index ¶
- Constants
- 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 (s *IPSets) GetIPSetMembers(setID string) []string
- func (s *IPSets) RemoveIPSet(setID string)
- func (s *IPSets) RemoveMembers(setID string, removedMembers []string)
- type IPSetsDataplane
- type IPVersionConfig
Constants ¶
const ( IPFamilyV4 = IPFamily("inet") IPFamilyV6 = IPFamily("inet6") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPFamily ¶
type IPFamily string
IPFamily constants to represent the IP family being managed by this IPSet
type IPSetMetadata ¶
IPSetMetadata contains the metadata for a particular IP set, such as its name and type.
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) GetIPSetMembers ¶
GetIPSetMembers returns all of the members for a given IP set
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
type IPSetsDataplane ¶
type IPSetsDataplane interface { AddOrReplaceIPSet(setMetadata IPSetMetadata, members []string) AddMembers(setID string, newMembers []string) RemoveMembers(setID string, removedMembers []string) RemoveIPSet(setID string) }
IPSetsDataplane is interface for managing a plane of ipSet objects.
type IPVersionConfig ¶
type IPVersionConfig struct {
Family IPFamily
}
IPVersionConfig wraps up the metadata for a particular IP version.
func NewIPVersionConfig ¶
func NewIPVersionConfig(family IPFamily) *IPVersionConfig