Documentation ¶
Index ¶
Constants ¶
View Source
const V1 = "application/vnd.drone.convert.v1+json"
V1 is version 1 of the converter API
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler returns a http.Handler that accepts JSON-encoded HTTP requests to convert the raw format to a yaml configuration file, invokes the underlying plugin, and writes the JSON-encoded config to the HTTP response.
The handler verifies the authenticity of the HTTP request using the http-signature, and returns a 400 Bad Request if the signature is missing or invalid.
The handler can optionally encrypt the response body using aesgcm if the HTTP request includes the Accept-Encoding header set to aesgcm.
Types ¶
Click to show internal directories.
Click to hide internal directories.