... and add a deprecated alias so backward compatibility is still preserved (and users can gradually switch to the new name). Done because this is now also reported by staticcheck (in addition to revive) linter. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> |
||
|---|---|---|
| .. | ||
| testfiles | ||
| README.md | ||
| cni_conversion.go | ||
| cni_exec.go | ||
| cni_suite_test.go | ||
| cni_types.go | ||
| config.go | ||
| config_freebsd.go | ||
| config_linux.go | ||
| config_test.go | ||
| network.go | ||
| run.go | ||
| run_freebsd.go | ||
| run_linux.go | ||
| run_test.go | ||
README.md
This package abstracts CNI from libpod.
It implements the ContainerNetwork interface defined in libpod/network/types/network.go for the CNI backend.
Testing
Run the tests with:
go test -v -mod=vendor -cover ./libpod/network/cni/
Run the tests as root to also test setup/teardown. This will execute CNI and therefore the cni plugins have to be installed.