NetworkInfo() return the network binary path, package version, program version and DNS information. Signed-off-by: Toshiki Sonoda <sonoda.toshiki@fujitsu.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.