summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-19 14:59:13 +0200
committerGitHub <noreply@github.com>2019-07-19 14:59:13 +0200
commit02140ea7d1244fbafb77723a3a67423b0806b08e (patch)
tree002608749a0930e7a75a6213217a9f09461eec71 /pkg/varlinkapi
parent398aeac8537e82ca813bb77e44ddfcefa5cc5ad5 (diff)
parent8ae97b2f57a845dd05f70f244a763c53250b4e81 (diff)
downloadpodman-02140ea7d1244fbafb77723a3a67423b0806b08e.tar.gz
podman-02140ea7d1244fbafb77723a3a67423b0806b08e.tar.bz2
podman-02140ea7d1244fbafb77723a3a67423b0806b08e.zip
Merge pull request #3590 from rhatdan/ro
Add support for listing read/only and read/write images
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r--pkg/varlinkapi/images.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/varlinkapi/images.go b/pkg/varlinkapi/images.go
index 2bebfd406..0ead1c23d 100644
--- a/pkg/varlinkapi/images.go
+++ b/pkg/varlinkapi/images.go
@@ -69,6 +69,7 @@ func (i *LibpodAPI) ListImages(call iopodman.VarlinkCall) error {
Containers: int64(len(containers)),
Labels: labels,
IsParent: isParent,
+ ReadOnly: image.IsReadOnly(),
}
imageList = append(imageList, i)
}
@@ -98,6 +99,8 @@ func (i *LibpodAPI) GetImage(call iopodman.VarlinkCall, id string) error {
return err
}
+ fmt.Println("DAN isReadOnly %d", newImage.IsReadOnly())
+
il := iopodman.Image{
Id: newImage.ID(),
ParentId: newImage.Parent,
@@ -109,6 +112,7 @@ func (i *LibpodAPI) GetImage(call iopodman.VarlinkCall, id string) error {
Containers: int64(len(containers)),
Labels: labels,
TopLayer: newImage.TopLayer(),
+ ReadOnly: newImage.IsReadOnly(),
}
return call.ReplyGetImage(il)
}