diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-07 19:24:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 19:24:20 +0200 |
commit | 536f23c0b78dd8feafee4e40b743988dbb03bfa2 (patch) | |
tree | f2b1290c2cde1944729468ec574a83093bacf4dc /pkg/domain/entities | |
parent | fbae579a31b580f45c25c2dcae87fc8a51e33009 (diff) | |
parent | d346e6e734dbaac911de0d774a5d8703e2abc83d (diff) | |
download | podman-536f23c0b78dd8feafee4e40b743988dbb03bfa2.tar.gz podman-536f23c0b78dd8feafee4e40b743988dbb03bfa2.tar.bz2 podman-536f23c0b78dd8feafee4e40b743988dbb03bfa2.zip |
Merge pull request #11431 from jmguzik/secrets-ls-filters
Add filtering functionality to http api secrets list
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/engine_container.go | 2 | ||||
-rw-r--r-- | pkg/domain/entities/secrets.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkg/domain/entities/engine_container.go b/pkg/domain/entities/engine_container.go index 93fa7a20f..3da31d8a0 100644 --- a/pkg/domain/entities/engine_container.go +++ b/pkg/domain/entities/engine_container.go @@ -86,7 +86,7 @@ type ContainerEngine interface { SetupRootless(ctx context.Context, noMoveProcess bool) error SecretCreate(ctx context.Context, name string, reader io.Reader, options SecretCreateOptions) (*SecretCreateReport, error) SecretInspect(ctx context.Context, nameOrIDs []string) ([]*SecretInfoReport, []error, error) - SecretList(ctx context.Context) ([]*SecretInfoReport, error) + SecretList(ctx context.Context, opts SecretListRequest) ([]*SecretInfoReport, error) SecretRm(ctx context.Context, nameOrID []string, opts SecretRmOptions) ([]*SecretRmReport, error) Shutdown(ctx context.Context) SystemDf(ctx context.Context, options SystemDfOptions) (*SystemDfReport, error) diff --git a/pkg/domain/entities/secrets.go b/pkg/domain/entities/secrets.go index 56a1465b7..55b470d7b 100644 --- a/pkg/domain/entities/secrets.go +++ b/pkg/domain/entities/secrets.go @@ -16,7 +16,7 @@ type SecretCreateOptions struct { } type SecretListRequest struct { - Filters map[string]string + Filters map[string][]string } type SecretListReport struct { |