# Functions
CleanDeviceInfoForCNI removes a DeviceInfo CNI File.
CleanDeviceInfoForDP removes a DeviceInfo DP File.
CopyDeviceInfoForCNIFromDP saves a DeviceInfo structure created by a DP to a CNI File.
CreateNetworkStatus create NetworkStatus from CNI result.
CreateNetworkStatuses creates an array of NetworkStatus from CNI result Not to be confused with CreateNetworkStatus (singular) This is the preferred method and picks up when CNI ADD results contain multiple container interfaces.
GetCNIConfig (from annotation string to CNI JSON bytes).
GetCNIConfigFromSpec reads a CNI JSON configuration from given directory (confDir).
GetCNIConfigFromSpec reads a CNI JSON configuration from the NetworkAttachmentDefinition object's Spec.Config field and fills in any missing details like the network name.
GetCNIDeviceInfoPath returns the standard Device Plugin DevInfo filename The path is fixed but the filename is flexible and determined by the caller.
GetNetworkStatus returns pod's network status.
LoadDeviceInfoFromCNI loads a DeviceInfo structure from created by a CNI.
LoadDeviceInfoFromDP loads a DeviceInfo structure from file created by a Device Plugin Returns an error if the device information is malformed and (nil, nil) if it does not exist.
ParseNetworkAnnotation parses actual annotation string and get NetworkSelectionElement.
ParsePodNetworkAnnotation parses Pod annotation for net-attach-def and get NetworkSelectionElement.
SaveDeviceInfoForCNI saves a DeviceInfo structure created by a CNI.
SaveDeviceInfoForDP saves a DeviceInfo structure created by a Device Plugin.
SetNetworkStatus updates the Pod status.