package
3.22.0-0.dev+incompatible
Repository: https://github.com/projectcalico/cni-plugin.git
Documentation: pkg.go.dev
# Functions
AddIgnoreUnknownArgs appends the 'IgnoreUnknown=1' option to CNI_ARGS before calling the IPAM plugin.
AddIPAM calls through to the configured IPAM plugin.
No description provided by the author
Set up logging for both Calico and libcalico using the provided log level,.
No description provided by the author
CreateOrUpdate creates the WorkloadEndpoint if ResourceVersion is not specified, or Update if it's specified.
CreateResultFromEndpoint takes a WorkloadEndpoint, extracts IP information and populates that into a CNI Result.
DeleteIPAM calls IPAM plugin to release the IP address.
DetermineNodename gets the node name, in order of priority: 1.
No description provided by the author
No description provided by the author
GetIdentifiers takes CNI command arguments, and extracts identifiers i.e.
No description provided by the author
MTUFromFile reads the /var/lib/calico/mtu file if it exists and returns the MTU within.
PopulateEndpointNets takes a WorkloadEndpoint and a CNI Result, extracts IP address and mask and populates that information into the WorkloadEndpoint.
No description provided by the author
ReleaseIPAllocation is called to cleanup IPAM allocations if something goes wrong during CNI ADD execution.
ReplaceHostLocalIPAMPodCIDRs extracts the host-local IPAM config section and replaces our special-case "usePodCidr" subnet value with pod CIDR retrieved by the passed-in getPodCIDR function.
ResolvePools takes an array of CIDRs or IP Pool names and resolves it to a slice of pool CIDRs.
SanitizeMesosLabel converts a string from a valid mesos label to a valid Calico label.
This function will update host-local IPAM data based on input from cni.conf.
ValidateNetworkName checks that the network name meets felix's expectations.
# Variables
No description provided by the author
IPv4AllNet represents the IPv4 all-addresses CIDR 0.0.0.0/0.
IPv6AllNet represents the IPv6 all-addresses CIDR ::/0.
# Structs
No description provided by the author