diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-03-19 15:50:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 15:50:50 +0100 |
commit | 1be61789151c80d46c0c4b75a02fb23a6937df7b (patch) | |
tree | a3bb96491a3d2c2f2b76269e33af5c7919bdcc73 /pkg/adapter/pods_remote.go | |
parent | e87fe4dbbbc55be42d7a31f5415f55d2ff99f81b (diff) | |
parent | 15326f051d6938e5d3cdcec2f95f86ad3aa5c5fa (diff) | |
download | podman-1be61789151c80d46c0c4b75a02fb23a6937df7b.tar.gz podman-1be61789151c80d46c0c4b75a02fb23a6937df7b.tar.bz2 podman-1be61789151c80d46c0c4b75a02fb23a6937df7b.zip |
Merge pull request #5445 from sujil02/podFilter-new
Filter pods through pod list api
Diffstat (limited to 'pkg/adapter/pods_remote.go')
-rw-r--r-- | pkg/adapter/pods_remote.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkg/adapter/pods_remote.go b/pkg/adapter/pods_remote.go index 20f089628..6b8f22f15 100644 --- a/pkg/adapter/pods_remote.go +++ b/pkg/adapter/pods_remote.go @@ -10,7 +10,7 @@ import ( "github.com/containers/libpod/cmd/podman/cliconfig" "github.com/containers/libpod/cmd/podman/shared" - "github.com/containers/libpod/cmd/podman/varlink" + iopodman "github.com/containers/libpod/cmd/podman/varlink" "github.com/containers/libpod/libpod" "github.com/containers/libpod/libpod/define" "github.com/containers/libpod/pkg/varlinkapi" @@ -208,6 +208,11 @@ func (r *LocalRuntime) GetAllPods() ([]*Pod, error) { return pods, nil } +// This is a empty implementation stating remoteclient not yet implemented +func (r *LocalRuntime) GetPodsWithFilters(filters string) ([]*Pod, error) { + return nil, define.ErrNotImplemented +} + // GetPodsByStatus returns a slice of pods filtered by a libpod status func (r *LocalRuntime) GetPodsByStatus(statuses []string) ([]*Pod, error) { podIDs, err := iopodman.GetPodsByStatus().Call(r.Conn, statuses) |