# Functions
DecodeNetConf loads the configuration from the given JSON data.
GetInClusterNamespace returns the namespace of the pod we are running in.
IfNameFromID returns a suitable interface name for the given identifier.
IsPeerContainerNotFound returns true if the given error is a peer container not found error.
KubeconfigFromRestConfig returns a kubeconfig from the given rest config.
LoadDefaultNetConf attempts to load the configuration from the default file.
LoadInstallOptionsFromEnv loads the install options from the environment.
LoadConfigFromArgs loads the configuration from the given CNI arguments.
LoadNetConfFromFile loads the configuration from the given file.
NewClientForConfig creates a new client from the given configuration.
NewRawClientForConfig creates a new raw client from the given configuration.
NewRestConfigFromBytes creates a new rest config from the given kubeconfig bytes.
# Constants
KubeAPIEndpointReplaceStr is the string that will be replaced in the CNI configuration with the Kubernetes API endpoint.
ClusterDomainEnvVar is the name of the environment variable that contains the cluster domain.
CNINetDirEnvVar is the directory containing host-local IPAM allocations.
DefaultDestBin is the default destination directory for the CNI binaries.
DefaultDestConfDir is the default destination directory for the CNI configuration.
DefaultDestConfFilename is the default name of the CNI configuration file.
HostLocalNetDir is the directory containing host-local IPAM allocations.
Default kubeconfig path if not provided.
DefaultNamespace is the default namespace to use for the plugin.
DefaultNetConfPath is the default path to the CNI configuration file.
DestBinEnvVar is the destination directory for the CNI binaries.
DestConfEnvVar is the destination directory for the CNI configuration.
DestConfFileNameEnvVar is the name of the file that contains the CNI configuration.
DryRunEnvVar is the name of the environment variable that enables dry run mode.
IfacePrefix is the prefix for interface names.
IPAMLockID is the ID used for the IPAM lock.
KubeconfigContextName is the name of the context in the kubeconfig.
KubeconfigEnvVar is the name of the environment variable that contains the kubeconfig.
KubeconfigFilepathReplaceStr is the string that will be replaced in the CNI configuration with the kubeconfig filepath.
NetConfTemplateEnvVar is the name of the environment variable that contains the CNI configuration.
NodeNameEnvVar is the name of the environment variable that contains the node name.
NodeNameReplaceStr is the string that will be replaced in the CNI configuration with the node name.
PluginBinaryName is the name of the plugin binary.
PluginKubeconfigName is the name of the kubeconfig file for the plugin.
PodCIDREnvVar is the name of the environment variable that contains the pod CIDR.
PodNamespaceEnvVar is the name of the environment variable that contains the pod namespace.
PodNamespaceReplaceStr is the string that will be replaced in the CNI configuration with the pod namespace.
ServiceCIDREnvVar is the name of the environment variable that contains the service CIDR.
# Variables
ErrPeerContainerNotFound is returned when a container is not found.
SchemeBuilders is a list of scheme builders to use for webmesh-cni clients.
# Structs
Client is the client for the CNI plugin.
ClientConfig is the configuration for the CNI client.
InstallOptions are the options for the install component.
Interface is the configuration for a single interface.
Kubernetes is the configuration for the Kubernetes API server and information about the node we are running on.
NetConf is the configuration for the CNI plugin.