summaryrefslogtreecommitdiff
path: root/pkg/adapter/runtime.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-04-01 12:50:08 -0500
committerbaude <bbaude@redhat.com>2019-04-03 09:52:38 -0500
commit576a80b0d75182a5ae12985c47bd31da72a51bc8 (patch)
treee4959ed98be60b3c0b4b64066febc3882f214af1 /pkg/adapter/runtime.go
parent2ad5f5cc25844d0723116149b42e04ab310269f4 (diff)
downloadpodman-576a80b0d75182a5ae12985c47bd31da72a51bc8.tar.gz
podman-576a80b0d75182a5ae12985c47bd31da72a51bc8.tar.bz2
podman-576a80b0d75182a5ae12985c47bd31da72a51bc8.zip
add remote-client diff
the remote client now can run the diff command to report changes, modifications, and deletions in an image or container. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/adapter/runtime.go')
-rw-r--r--pkg/adapter/runtime.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/adapter/runtime.go b/pkg/adapter/runtime.go
index 6a68a3aea..dd51c7233 100644
--- a/pkg/adapter/runtime.go
+++ b/pkg/adapter/runtime.go
@@ -23,6 +23,7 @@ import (
"github.com/containers/libpod/libpod/events"
"github.com/containers/libpod/libpod/image"
"github.com/containers/libpod/pkg/rootless"
+ "github.com/containers/storage/pkg/archive"
"github.com/pkg/errors"
)
@@ -430,3 +431,8 @@ func (r *LocalRuntime) Events(c *cliconfig.EventValues) error {
}
return nil
}
+
+// Diff shows the difference in two objects
+func (r *LocalRuntime) Diff(c *cliconfig.DiffValues, to string) ([]archive.Change, error) {
+ return r.Runtime.GetDiff("", to)
+}