Documentation
¶
Index ¶
- func DecodeTagSelectorParam(tags *openapi.TagSelectorParameter) (unikornv1core.TagList, error)
- func ReadJSONBody(r *http.Request, v any) error
- func WriteJSONResponse(w http.ResponseWriter, r *http.Request, code int, response any)
- func WriteOctetStreamResponse(w http.ResponseWriter, r *http.Request, code int, body []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeTagSelectorParam ¶ added in v1.4.0
func DecodeTagSelectorParam(tags *openapi.TagSelectorParameter) (unikornv1core.TagList, error)
func ReadJSONBody ¶
ReadJSONBody is a generic request reader to unmarshal JSON bodies.
func WriteJSONResponse ¶
WriteJSONResponse is a generic wrapper for returning a JSON payload to the client.
func WriteOctetStreamResponse ¶
WriteOctetStreamResponse is a generic wrapper for returning a OctetStream payload to the client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.