package
1.2.3
Repository: https://github.com/containernetworking/cni.git
Documentation: pkg.go.dev

# Packages

Package legacy_examples contains sample code from prior versions of the CNI library, for use in verifying backwards compatibility.
Package testhelpers supports testing of CNI components of different versions For example, to build a plugin against an old version of the CNI library, we can pass the plugin's source and the old git commit reference to BuildAt.

# Functions

Current reports the version of the CNI spec implemented by this library.
GreaterThan returns true if the first version is greater than the second.
GreaterThanOrEqualTo takes two string versions, parses them into major/minor/micro numbers, and compares them to determine whether the first version is greater than or equal to the second.
Finds a Result object matching the requested version (if any) and asks that object to parse the plugin result, returning an error if parsing failed.
ParsePrevResult parses a prevResult in a NetConf structure and sets the NetConf's PrevResult member to the parsed Result object.
ParseVersion parses a version string like "3.0.1" or "0.4.5" into major, minor, and micro numbers or returns an error.
PluginSupports returns a new PluginInfo that will report the given versions as supported.
VersionsFrom returns a list of versions starting from min, inclusive.

# Variables

Legacy PluginInfo describes a plugin that is backwards compatible with the CNI spec version 0.1.0.
Legacy PluginInfo describes a plugin that is backwards compatible with the CNI spec version 0.1.0.

# Structs

ConfigDecoder can decode the CNI version available in network config data.
No description provided by the author
PluginDecoder can decode the response returned by a plugin's VERSION command.
No description provided by the author

# Interfaces

PluginInfo reports information about CNI versioning.