summaryrefslogtreecommitdiff
path: root/pkg/api/server/swagger.go
diff options
context:
space:
mode:
authortroyready <troy@troyready.com>2021-03-02 18:12:29 -0800
committertroyready <troy@troyready.com>2021-03-12 10:39:15 -0800
commit9251b6c8cfaa5db738212c467c79f8c3aceb5b7d (patch)
treedf80a61cdff011b14c987736833dbae96720ab44 /pkg/api/server/swagger.go
parentfc02d16e728dfdd5a5f2e3bc622bbceb7f8c0d24 (diff)
downloadpodman-9251b6c8cfaa5db738212c467c79f8c3aceb5b7d.tar.gz
podman-9251b6c8cfaa5db738212c467c79f8c3aceb5b7d.tar.bz2
podman-9251b6c8cfaa5db738212c467c79f8c3aceb5b7d.zip
add /auth for docker compatibility
This endpoint just validates credentials: https://github.com/moby/moby/blob/v20.10.4/api/swagger.yaml#L7936-L7977 Fixes: #9564 Signed-off-by: troyready <troy@troyready.com>
Diffstat (limited to 'pkg/api/server/swagger.go')
-rw-r--r--pkg/api/server/swagger.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/api/server/swagger.go b/pkg/api/server/swagger.go
index 92efb8ef3..12fd083bb 100644
--- a/pkg/api/server/swagger.go
+++ b/pkg/api/server/swagger.go
@@ -226,3 +226,12 @@ type swagSystemPruneReport struct {
entities.SystemPruneReport
}
}
+
+// Auth response
+// swagger:response SystemAuthResponse
+type swagSystemAuthResponse struct {
+ // in:body
+ Body struct {
+ entities.AuthReport
+ }
+}