diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-01-16 10:33:43 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-01-21 14:19:42 -0700 |
commit | 68896b18e579d70822543748a2f5d95a55daaca1 (patch) | |
tree | 2765dda0be9330629c40370141bc1a7750015993 /pkg/api/handlers/handler.go | |
parent | f467bb20bd1c98b1706fa3c4448857800395c169 (diff) | |
download | podman-68896b18e579d70822543748a2f5d95a55daaca1.tar.gz podman-68896b18e579d70822543748a2f5d95a55daaca1.tar.bz2 podman-68896b18e579d70822543748a2f5d95a55daaca1.zip |
Update build images
* Add swagger annotations for all the query and response parameters
for buildimages
* Improve populating the BuildOptions struct
* Improve swagger.json generation, removing tags.xml and move tag
definiation into the swagger:meta block
* Update Makefile to be more robust, added target for validation
* TODO once validation passes add that step to the generation step
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api/handlers/handler.go')
-rw-r--r-- | pkg/api/handlers/handler.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkg/api/handlers/handler.go b/pkg/api/handlers/handler.go index 2efeb1379..4f303f6ab 100644 --- a/pkg/api/handlers/handler.go +++ b/pkg/api/handlers/handler.go @@ -36,11 +36,11 @@ func getRuntime(r *http.Request) *libpod.Runtime { return r.Context().Value("runtime").(*libpod.Runtime) } -func getHeader(r *http.Request, k string) string { - return r.Header.Get(k) -} - -func hasHeader(r *http.Request, k string) bool { - _, found := r.Header[k] - return found -} +// func getHeader(r *http.Request, k string) string { +// return r.Header.Get(k) +// } +// +// func hasHeader(r *http.Request, k string) bool { +// _, found := r.Header[k] +// return found +// } |