mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
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>
This commit is contained in:
@ -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
|
||||
// }
|
||||
|
Reference in New Issue
Block a user