summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-02-04 18:30:07 +0100
committerMatej Vasek <mvasek@redhat.com>2021-02-04 18:30:07 +0100
commit05444cb2ccf29515e6cb8f2711c64213b7cb3325 (patch)
treeaed1a97fa64f451ca95813f9412ff29f20827bd0 /libpod/define
parent2b8d6ca09be8610693ac18b6046b3a7a6d3d67dd (diff)
downloadpodman-05444cb2ccf29515e6cb8f2711c64213b7cb3325.tar.gz
podman-05444cb2ccf29515e6cb8f2711c64213b7cb3325.tar.bz2
podman-05444cb2ccf29515e6cb8f2711c64213b7cb3325.zip
Fix per review request
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'libpod/define')
-rw-r--r--libpod/define/errors.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpod/define/errors.go b/libpod/define/errors.go
index d37bc397e..2e85454b2 100644
--- a/libpod/define/errors.go
+++ b/libpod/define/errors.go
@@ -198,4 +198,8 @@ var (
// ErrSecurityAttribute indicates that an error processing security attributes
// for the container
ErrSecurityAttribute = fmt.Errorf("%w: unable to process security attribute", ErrOCIRuntime)
+
+ // ErrCanceled indicates that an operation has been cancelled by a user.
+ // Useful for potentially long running tasks.
+ ErrCanceled = errors.New("cancelled by user")
)