Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalTrafficDetector ¶
type LocalTrafficDetector interface { // IsImplemented returns true if the implementation does something, false otherwise IsImplemented() bool // IfLocal returns iptables arguments that will match traffic from a pod IfLocal() []string // IfNotLocal returns iptables arguments that will match traffic that is not from a pod IfNotLocal() []string }
LocalTrafficDetector in a interface to take action (jump) based on whether traffic originated locally at the node or not
func NewDetectLocalByCIDR ¶
func NewDetectLocalByCIDR(cidr string, ipt utiliptables.Interface) (LocalTrafficDetector, error)
NewDetectLocalByCIDR implements the LocalTrafficDetector interface using a CIDR. This can be used when a single CIDR range can be used to capture the notion of local traffic.
func NewNoOpLocalDetector ¶
func NewNoOpLocalDetector() LocalTrafficDetector
NewNoOpLocalDetector is a no-op implementation of LocalTrafficDetector
Click to show internal directories.
Click to hide internal directories.