Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanStaleEntries ¶
func CleanStaleEntries(ct Interface, ipFamily v1.IPFamily, svcPortMap proxy.ServicePortMap, endpointsMap proxy.EndpointsMap)
CleanStaleEntries scans conntrack table and removes any entries for a service that do not correspond to a serving endpoint.
Types ¶
type FakeInterface ¶ added in v1.30.0
type FakeInterface struct {
// contains filtered or unexported fields
}
FakeInterface implements Interface by just recording entries that have been cleared.
func (*FakeInterface) ClearEntries ¶ added in v1.32.0
func (fake *FakeInterface) ClearEntries(_ uint8, filters ...netlink.CustomConntrackFilter) (int, error)
ClearEntries is part of Interface
func (*FakeInterface) ListEntries ¶ added in v1.32.0
func (fake *FakeInterface) ListEntries(_ uint8) ([]*netlink.ConntrackFlow, error)
ListEntries is part of Interface
type Interface ¶ added in v1.30.0
type Interface interface { ListEntries(ipFamily uint8) ([]*netlink.ConntrackFlow, error) // ClearEntries deletes conntrack entries for connections of the given IP family, // filtered by the given filters. ClearEntries(ipFamily uint8, filters ...netlink.CustomConntrackFilter) (int, error) }
Interface for dealing with conntrack
Click to show internal directories.
Click to hide internal directories.