From 7def91910c07ee3782b2106f76877d57d646f9b4 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Sun, 29 Mar 2020 14:46:35 -0500 Subject: podmanv2 pod ps add the ability to list pods in podmanv2 Signed-off-by: Brent Baude --- pkg/domain/infra/tunnel/pods.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/domain/infra/tunnel/pods.go') diff --git a/pkg/domain/infra/tunnel/pods.go b/pkg/domain/infra/tunnel/pods.go index 9561a9807..ad87a0a29 100644 --- a/pkg/domain/infra/tunnel/pods.go +++ b/pkg/domain/infra/tunnel/pods.go @@ -193,3 +193,7 @@ func (ic *ContainerEngine) PodTop(ctx context.Context, options entities.PodTopOp } return &entities.StringSliceReport{Value: topOutput}, nil } + +func (ic *ContainerEngine) PodPs(ctx context.Context, options entities.PodPSOptions) ([]*entities.ListPodsReport, error) { + return pods.List(ic.ClientCxt, options.Filters) +} -- cgit v1.2.3-54-g00ecf