package
1.6.0
Repository: https://github.com/song-jiang/libcalico-go.git
Documentation: pkg.go.dev

# Functions

IPNetToResourceName converts the given IPNet into a name used for a k8s resource.
IPToResourceName converts an IP address to a name used for a k8s resource.
K8sErrorToCalico returns the equivalent libcalico error for the given kubernetes error.
K8sNodeToCalico converts a Kubernetes format node, with Calico annotations, to a Calico Node.
NewCustomK8sNodeResourceClient creates a new per-node K8sResourceClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ResourceNameToIP converts a name used for a k8s resource to an IP address.
ResourceNameToIPNet converts a name used for a k8s resource to an IPNet.

# Constants

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

# Structs

CustomK8sNodeResourceClientConfig is the config required for initializing a new per-node K8sResourceClient.
GlobalBGPConfigConverter implements the K8sResourceConverter interface.
GlobalBGPPeerConverter implements the CustomK8sResourceConverter interface.
GlobalFelixConfigConverter implements the K8sResourceConverter interface.
GlobalNetworkPolicyConverter implements the K8sResourceConverter interface.
IPPoolConverter implements the K8sResourceConverter interface.
NodeBGPConfigConverter implements the CustomK8sNodeResourceConverter interface.
NodeBGPPeerConverter implements the CustomK8sNodeResourceConverter interface.

# Interfaces

Interface required to satisfy use as a Kubernetes Custom Resource List type.
CustomK8sNodeResourceConverter defines an interface to map between the model and the annotation representation of a resource.,.
Interface required to satisfy use as a Kubernetes Custom Resource type.
CustomK8sResourceConverter defines an interface to map between KVPair representation and a custom Kubernetes resource.
K8sNodeResourceClient extends the K8sResourceClient to add a helper method to extract resources from the supplied K8s Node.
K8sResourceClient is the interface to the k8s datastore for CRUD operations on an individual resource (one for each of the *model* types supported by the K8s backend).