plugins/plugins/sample
Casey Callendrello 72f2a1ffd4 plugins: correctly output build version, cosmetic cleanups
Now that libcni has the ability to print a version message, plumb it
through correctly.

While we're at it,
- fix import paths
- run gofmt
- add some more comments to sample
- add container runtime swappability for release
2019-04-15 16:52:07 +02:00
..
main.go plugins: correctly output build version, cosmetic cleanups 2019-04-15 16:52:07 +02:00
README.md sample: create sample plugin 2017-03-13 14:31:58 +01:00
sample_linux_test.go plugins/testutils: pass CNI_CONTAINERID to plugins in testcases 2018-04-26 11:24:30 -05:00
sample_suite_test.go build: some small improvements; bump to go1.10 2018-04-12 16:59:51 +02:00

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.