aboutsummaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-05-17 10:21:20 -0400
committerGitHub <noreply@github.com>2021-05-17 10:21:20 -0400
commit9d2bc4cae81889096f9baa66b1f9f48d6dcd942f (patch)
tree0a55271cde0e303ba8a8d30c74d91b731735d258 /libpod/define
parent3bdbe3ce969ac510b8d4ee44da4578da9fed659c (diff)
parent4462113c5e1d51b2ac6516afb96a9ae83c00254e (diff)
downloadpodman-9d2bc4cae81889096f9baa66b1f9f48d6dcd942f.tar.gz
podman-9d2bc4cae81889096f9baa66b1f9f48d6dcd942f.tar.bz2
podman-9d2bc4cae81889096f9baa66b1f9f48d6dcd942f.zip
Merge pull request #10356 from Luap99/network-reload-rootless
podman network reload add rootless support
Diffstat (limited to 'libpod/define')
-rw-r--r--libpod/define/errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/define/errors.go b/libpod/define/errors.go
index 64c652eec..81bf5f69c 100644
--- a/libpod/define/errors.go
+++ b/libpod/define/errors.go
@@ -179,6 +179,9 @@ var (
// ErrNoNetwork indicates that a container has no net namespace, like network=none
ErrNoNetwork = errors.New("container has no network namespace")
+ // ErrNetworkModeInvalid indicates that a container has the wrong network mode for an operation
+ ErrNetworkModeInvalid = errors.New("invalid network mode")
+
// ErrSetSecurityAttribute indicates that a request to set a container's security attribute
// was not possible.
ErrSetSecurityAttribute = fmt.Errorf("%w: unable to assign security attribute", ErrOCIRuntime)