diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-04-03 11:16:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-03 11:16:42 -0700 |
commit | 42757c18553bb2e6865efed4c912e3361012c49c (patch) | |
tree | 6fc8cf07f8751043f1c0ee25ad664810fd597d84 /pkg/varlinkapi/images.go | |
parent | 662ae6c0edd65db396c184c288fa93fce8023879 (diff) | |
parent | 576a80b0d75182a5ae12985c47bd31da72a51bc8 (diff) | |
download | podman-42757c18553bb2e6865efed4c912e3361012c49c.tar.gz podman-42757c18553bb2e6865efed4c912e3361012c49c.tar.bz2 podman-42757c18553bb2e6865efed4c912e3361012c49c.zip |
Merge pull request #2825 from baude/remotediff
add remote-client diff
Diffstat (limited to 'pkg/varlinkapi/images.go')
-rw-r--r-- | pkg/varlinkapi/images.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/varlinkapi/images.go b/pkg/varlinkapi/images.go index 0ca867410..63d500204 100644 --- a/pkg/varlinkapi/images.go +++ b/pkg/varlinkapi/images.go @@ -910,3 +910,16 @@ func (i *LibpodAPI) LoadImage(call iopodman.VarlinkCall, name, inputFile string, } return call.ReplyLoadImage(br) } + +// Diff ... +func (i *LibpodAPI) Diff(call iopodman.VarlinkCall, name string) error { + var response []iopodman.DiffInfo + changes, err := i.Runtime.GetDiff("", name) + if err != nil { + return call.ReplyErrorOccurred(err.Error()) + } + for _, change := range changes { + response = append(response, iopodman.DiffInfo{Path: change.Path, ChangeType: change.Kind.String()}) + } + return call.ReplyDiff(response) +} |