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:

Link to this section Summary

Types

t()

The struct used as token in the request handler pipeline.

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 resource
  • kind - The Kind of the received resource
  • request - 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 to false.
  • assigns - A map used to internally forward data within the pipeline. Defaults to %{}.

Link to this section Functions

Link to this function

new(request, assigns \\ [])

View Source
@spec new(resource :: map(), assigns :: keyword() | map()) :: t()