ipset

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HashIP       = ipset.HashIP
	HashNet      = ipset.HashNet
	HashIPPortIP = ipset.HashIPPortIP

	ProtocolFamilyIPV4 = ipset.ProtocolFamilyIPV4
	ProtocolFamilyIPV6 = ipset.ProtocolFamilyIPV6
)
View Source
const (
	RemotePodCIDR   = "FABEDGE-REMOTE-POD-CIDR"
	RemotePodCIDR6  = "FABEDGE-REMOTE-POD-CIDR6"
	RemoteNodeCIDR  = "FABEDGE-REMOTE-NODE-CIDR"
	RemoteNodeCIDR6 = "FABEDGE-REMOTE-NODE-CIDR6"
	LocalPodCIDR    = "FABEDGE-LOCAL-POD-CIDR"
	LocalPodCIDR6   = "FABEDGE-LOCAL-POD-CIDR6"
	LocalNodeCIDR   = "FABEDGE-LOCAL-NODE-CIDR"
	LocalNodeCIDR6  = "FABEDGE-LOCAL-NODE-CIDR6"
	RemoteCIDR      = "FABEDGE-REMOTE-CIDR"
	RemoteCIDR6     = "FABEDGE-REMOTE-CIDR6"
)

Remote refers to nodes or pods in different LANs, maybe even not in the same cluster, while Local refers to nodes or pods in the same LAN and the same cluster.

Variables

Functions

This section is empty.

Types

type IPSet added in v0.6.0

type IPSet = ipset.IPSet

type IPSetNames added in v1.0.0

type IPSetNames struct {
	RemotePodCIDR  string
	RemoteNodeCIDR string
	LocalPodCIDR   string
	LocalNodeCIDR  string
	RemoteCIDR     string
}

type Interface

type Interface interface {
	// EnsureIPSet ensure specified are created and ensure this ipset only contains all entries
	// specified in entrySet.
	// Allowed SetType are HashNet and HashIP
	// Data in entrySet must be either an IP or a CIDR
	EnsureIPSet(set *ipset.IPSet, entrySet sets.String) error
}

func New

func New() Interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL