summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-06 22:04:16 +0200
committerGitHub <noreply@github.com>2020-04-06 22:04:16 +0200
commit843fa25890199c04b8419833d39bdedf4ead391c (patch)
tree42d2d5b7b9c457935c963de6aa601433f1fd734e /pkg/bindings
parent7d95e0c47ad7203c6ad3e5a0441a309e5368dc52 (diff)
parentb22254dc8bfdea5153761e93298182286f874bac (diff)
downloadpodman-843fa25890199c04b8419833d39bdedf4ead391c.tar.gz
podman-843fa25890199c04b8419833d39bdedf4ead391c.tar.bz2
podman-843fa25890199c04b8419833d39bdedf4ead391c.zip
Merge pull request #5716 from baude/v2ps
podmanv2 ps
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/containers/containers.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/bindings/containers/containers.go b/pkg/bindings/containers/containers.go
index 49a2dfd58..a188d73a0 100644
--- a/pkg/bindings/containers/containers.go
+++ b/pkg/bindings/containers/containers.go
@@ -10,8 +10,8 @@ import (
"github.com/containers/libpod/libpod/define"
"github.com/containers/libpod/pkg/api/handlers"
- lpapiv2 "github.com/containers/libpod/pkg/api/handlers/libpod"
"github.com/containers/libpod/pkg/bindings"
+ "github.com/containers/libpod/pkg/domain/entities"
)
// List obtains a list of containers in local storage. All parameters to this method are optional.
@@ -19,12 +19,12 @@ import (
// the most recent number of containers. The pod and size booleans indicate that pod information and rootfs
// size information should also be included. Finally, the sync bool synchronizes the OCI runtime and
// container state.
-func List(ctx context.Context, filters map[string][]string, all *bool, last *int, pod, size, sync *bool) ([]lpapiv2.ListContainer, error) { // nolint:typecheck
+func List(ctx context.Context, filters map[string][]string, all *bool, last *int, pod, size, sync *bool) ([]entities.ListContainer, error) { // nolint:typecheck
conn, err := bindings.GetClient(ctx)
if err != nil {
return nil, err
}
- var containers []lpapiv2.ListContainer
+ var containers []entities.ListContainer
params := url.Values{}
if all != nil {
params.Set("all", strconv.FormatBool(*all))