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/bindings/secrets/secrets.go | |
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/bindings/secrets/secrets.go')
-rw-r--r-- | pkg/bindings/secrets/secrets.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/bindings/secrets/secrets.go b/pkg/bindings/secrets/secrets.go index b741d3e5c..c439971c9 100644 --- a/pkg/bindings/secrets/secrets.go +++ b/pkg/bindings/secrets/secrets.go @@ -18,7 +18,11 @@ func List(ctx context.Context, options *ListOptions) ([]*entities.SecretInfoRepo if err != nil { return nil, err } - response, err := conn.DoRequest(nil, http.MethodGet, "/secrets/json", nil, nil) + params, err := options.ToParams() + if err != nil { + return nil, err + } + response, err := conn.DoRequest(nil, http.MethodGet, "/secrets/json", params, nil) if err != nil { return secrs, err } |