From 762148deb6be6925d17bd12f219f7385e1402439 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Mon, 15 Mar 2021 10:45:24 +0100 Subject: Split libpod/network package The `libpod/network` package should only be used on the backend and not the client. The client used this package only for two functions so move them into a new `pkg/network` package. This is needed so we can put linux only code into `libpod/network`, see #9710. [NO TESTS NEEDED] Signed-off-by: Paul Holzinger --- libpod/runtime_ctr_network_unsupported.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libpod/runtime_ctr_network_unsupported.go (limited to 'libpod/runtime_ctr_network_unsupported.go') diff --git a/libpod/runtime_ctr_network_unsupported.go b/libpod/runtime_ctr_network_unsupported.go new file mode 100644 index 000000000..fb7e802ac --- /dev/null +++ b/libpod/runtime_ctr_network_unsupported.go @@ -0,0 +1,12 @@ +// +build !linux + +package libpod + +import ( + "github.com/containers/common/pkg/config" + "github.com/containers/podman/v3/libpod/define" +) + +func normalizeNetworkName(config *config.Config, nameOrID string) (string, error) { + return "", define.ErrNotImplemented +} -- cgit v1.2.3-54-g00ecf