View Source K8sWebhoox.Conn (k8s_webhoox v0.2.0)
This module defines a struct which is used as token in the Pluggable
pipeline handling of webhook requests.
There are several modules defining helpers that operate on these tokens:
K8sWebhoox.AdmissionControl.AdmissionReview
- Helpers when handling admission control webhook requests
Link to this section Summary
Link to this section Types
@type t() :: %K8sWebhoox.Conn{ api_version: binary(), assigns: map(), halted: boolean(), kind: binary(), request: map(), response: map() }
The struct used as token in the request handler pipeline.
fields
Fields
api_version
- The API Version of the received resourcekind
- The Kind of the received resourcerequest
- The body of the HTTPS request representing the admission request.response
- The resposne the request handler pipeline is suposed to define.
internal-fields
Internal Fields
halted
- Whether the pipeline is halted or not. Defaults tofalse
.assigns
- A map used to internally forward data within the pipeline. Defaults to%{}
.