package
3.22.0-0.dev+incompatible
Repository: https://github.com/projectcalico/felix.git
Documentation: pkg.go.dev

# Functions

K8sSvcWithExternalIPs sets ExternalIPs.
K8sSvcWithLBSourceRangeIPs sets LBSourcePortRangeIPs.
K8sSvcWithLoadBalancerIPs set LoadBalancerIPStrings.
K8sSvcWithLocalOnly sets OnlyNodeLocalEndpoints=true.
K8sSvcWithNodePort sets the nodeport.
K8sSvcWithStickyClientIP sets ServiceAffinityClientIP to seconds.
New returns a new Proxy for the given k8s interface.
NewK8sServicePort creates a new k8s ServicePort.
NewRTCache creates an empty routing cache.
NewSyncer returns a new Syncer.
ProtoV1ToInt translates k8s v1.Protocol to its IANA number and returns error if the proto is not recognized.
ProtoV1ToIntPanic translates k8s v1.Protocol to its IANA number and panics if the protocol is not recognized.
ServicePortEqual compares if two k8sp.ServicePort are equal, that is all of their methods return equal values, i.e., they may differ in implementation, but present themselves equally.
StartKubeProxy start a new kube-proxy if there was no error.
WithDSREnabled sets the DSR mode.
WithEndpointsSlices enables using EndpointSlices.
WithImmediateSync triggers sync with dataplane on immediately on every update.
WithMinSyncPeriod sets the minimum duration between two attempts to sync with the dataplane.

# Structs

DPSyncerState groups the information passed to the DPSyncer's Apply.
KubeProxy is a wrapper of Proxy that deals with higher level issue like configuration, restarting etc.
RTCache is a lookup data structure that allow inserting and deleting routes and to do a LPM prefix match for IP addresses.
Syncer is an implementation of DPSyncer interface.

# Interfaces

DPSyncer is an interface representing the dataplane syncer that applies the observed changes to the dataplane.
Proxy watches for updates of Services and Endpoints, maintains their mapping and programs it into the dataplane.
Routes is an interface to query routes.

# Type aliases

K8sServicePortOption defines options for NewK8sServicePort.
Option defines Proxy options.