diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-11-22 21:56:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-22 21:56:12 +0100 |
commit | ef240f4cd0fd3bf45f79522eb0cc3aad228e32ac (patch) | |
tree | 10bdcd842996eba5a981ff0be296f270bee40346 /libpod/image/image.go | |
parent | 35605c02fd9a83f09c61323942243e1a9cf1d4f1 (diff) | |
parent | c7d911e77633a0990a79d05ec3fdc1e04b0fbde1 (diff) | |
download | podman-ef240f4cd0fd3bf45f79522eb0cc3aad228e32ac.tar.gz podman-ef240f4cd0fd3bf45f79522eb0cc3aad228e32ac.tar.bz2 podman-ef240f4cd0fd3bf45f79522eb0cc3aad228e32ac.zip |
Merge pull request #4512 from kunalkushwaha/prune-filter
image prune command fixed as per docker image prune.
Diffstat (limited to 'libpod/image/image.go')
-rw-r--r-- | libpod/image/image.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go index 75ac85311..fa75be44d 100644 --- a/libpod/image/image.go +++ b/libpod/image/image.go @@ -74,6 +74,11 @@ type InfoImage struct { Layers []LayerInfo } +// ImageFilter is a function to determine whether a image is included +// in command output. Images to be outputted are tested using the function. +// A true return will include the image, a false return will exclude it. +type ImageFilter func(*Image) bool //nolint + // ErrRepoTagNotFound is the error returned when the image id given doesn't match a rep tag in store var ErrRepoTagNotFound = stderrors.New("unable to match user input to any specific repotag") |