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

# Functions

EndpointInfoOptIsLocal applies the given bool to the endpoint's isLocal field.
EndpointInfoOptIsReady applies the given bool to the endpoint's ready field.
EndpointInfoOptIsServing applies the given bool to the endpoint's serving field.
EndpointInfoOptIsTerminating applies the given bool to the endpoint's terminating field.
EndpointInfoOptZoneHints applies the given set to the endpoint's zoneHints field.
K8sSvcWithExternalIPs sets ExternalIPs.
K8sSvcWithHintsAnnotation sets hints annotation to service info object.
K8sSvcWithLBSourceRangeIPs sets LBSourcePortRangeIPs.
K8sSvcWithLoadBalancerIPs set LoadBalancerIPStrings.
K8sSvcWithLocalOnly sets OnlyNodeLocalEndpoints=true.
K8sSvcWithNodePort sets the nodeport.
No description provided by the author
K8sSvcWithStickyClientIP sets ServiceAffinityClientIP to seconds.
New returns a new Proxy for the given k8s interface.
NewEndpointInfo creates a new endpointInfo, returning it as a k8s proxy Endpoint.
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.
nolint:staticcheck // Ignore SA1019 deprecated until kubernetes/pkg/proxy/types.go fixes sets.String.
StartKubeProxy start a new kube-proxy if there was no error.
WithDSREnabled sets the DSR mode.
No description provided by the author
WithImmediateSync triggers sync with dataplane on immediately on every update.
No description provided by the author
WithMinSyncPeriod sets the minimum duration between two attempts to sync with the dataplane.
WithTopologyNodeZone sets the topology node zone.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# 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.
No description provided by the author
Routes is an interface to query routes.
Service combines k8s service properties with the service annotations.
No description provided by the author

# Type aliases

No description provided by the author
K8sServicePortOption defines options for NewK8sServicePort.
Option defines Proxy options.