k8s v0.5.2 K8s.Middleware.Registry

Cluster middleware registry

Link to this section Summary

Types

List of middlewares

Functions

Adds a middleware to the end of the middleware stack

Returns a specification to start this module under a supervisor.

Returns middleware stack for a cluster and (request or response)

Sets/replaces the middleware stack

Link to this section Types

Link to this type

stack_t()

stack_t() :: [module()]

List of middlewares

Link to this section Functions

Link to this function

add(cluster, type, middleware)

add(atom(), K8s.Middleware.type_t(), module()) :: :ok

Adds a middleware to the end of the middleware stack

Link to this function

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

defaults(atom)

defaults(K8s.Middleware.type_t()) :: stack_t()
Link to this function

list(cluster, type)

Returns middleware stack for a cluster and (request or response)

Link to this function

set(cluster, type, middlewares)

set(atom(), K8s.Middleware.type_t(), [module()]) :: :ok

Sets/replaces the middleware stack

Link to this function

start_link(opts)

start_link(Keyword.t()) :: Agent.on_start()