spiegel_podman/vendor/github.com/containers/common/libnetwork/cni
Paul Holzinger a687c38860
use rootless netns from c/common
Use the new rootlessnetns logic from c/common, drop the podman code
here and make use of the new much simpler API.

ref: https://github.com/containers/common/pull/1761

[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-12-07 11:24:46 +01:00
..
cni_conversion.go Vendor in latest c/common 2023-01-17 12:12:17 -05:00
cni_exec.go use rootless netns from c/common 2023-12-07 11:24:46 +01:00
cni_types.go Update containers common package 2022-12-06 13:52:28 +02:00
config.go vendor in latests containers/common 2023-06-21 15:10:25 +08:00
config_freebsd.go autocomplete podman search --filter 2022-05-24 16:07:38 +02:00
config_linux.go autocomplete podman search --filter 2022-05-24 16:07:38 +02:00
network.go use rootless netns from c/common 2023-12-07 11:24:46 +01:00
README.md use libnetwork from c/common 2022-01-12 17:07:30 +01:00
run.go use rootless netns from c/common 2023-12-07 11:24:46 +01:00
run_freebsd.go system service: unset NOTIFY_SOCKET 2023-08-24 16:23:01 +02:00
run_linux.go autocomplete podman search --filter 2022-05-24 16:07:38 +02:00

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.