mirror of
https://github.com/rancher/plugins.git
synced 2025-07-15 16:01:49 +00:00
It's a pointer now, so we need to use the helper function to set the field and also test for nil before accessing it. |
||
---|---|---|
.. | ||
main.go | ||
README.md | ||
sample_suite_test.go | ||
sample_test.go |
Sample CNI plugin
This is an example of a sample chained plugin. It includes solutions for some of the more subtle cases that can be experienced with multi-version chained plugins.
To use it, just add your code to the cmdAdd and cmdDel plugins.