summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/libpod/images.go
diff options
context:
space:
mode:
authorRalf Haferkamp <rhafer@suse.com>2020-07-31 13:16:20 +0200
committerRalf Haferkamp <rhafer@suse.com>2020-07-31 15:39:57 +0200
commit54256fbe7881894063f27e19e7dc63cb7c358e0c (patch)
tree628d51d16339904d9ef1c9125646b1f17c8e0085 /pkg/api/handlers/libpod/images.go
parentbcbb5f9963e9b08ddaeb895d074e98f176a39bc0 (diff)
downloadpodman-54256fbe7881894063f27e19e7dc63cb7c358e0c.tar.gz
podman-54256fbe7881894063f27e19e7dc63cb7c358e0c.tar.bz2
podman-54256fbe7881894063f27e19e7dc63cb7c358e0c.zip
Make `search --no-trunc` work for podman remote
The HTTP API for image search was still lacking support of the NoTrunc parameter. Signed-off-by: Ralf Haferkamp <rhafer@suse.com>
Diffstat (limited to 'pkg/api/handlers/libpod/images.go')
-rw-r--r--pkg/api/handlers/libpod/images.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/images.go b/pkg/api/handlers/libpod/images.go
index aaa2c4330..e0da990c3 100644
--- a/pkg/api/handlers/libpod/images.go
+++ b/pkg/api/handlers/libpod/images.go
@@ -638,6 +638,7 @@ func SearchImages(w http.ResponseWriter, r *http.Request) {
query := struct {
Term string `json:"term"`
Limit int `json:"limit"`
+ NoTrunc bool `json:"noTrunc"`
Filters []string `json:"filters"`
TLSVerify bool `json:"tlsVerify"`
}{
@@ -650,7 +651,8 @@ func SearchImages(w http.ResponseWriter, r *http.Request) {
}
options := image.SearchOptions{
- Limit: query.Limit,
+ Limit: query.Limit,
+ NoTrunc: query.NoTrunc,
}
if _, found := r.URL.Query()["tlsVerify"]; found {
options.InsecureSkipTLSVerify = types.NewOptionalBool(!query.TLSVerify)