bonny v0.1.3 Bonny.Watcher.Impl
Implementation logic for Bonny.Watcher
Link to this section Summary
Functions
Dispatches an ADDED
, MODIFIED
, and DELETED
events to an operator
Returns the current resource version
Receives a plaintext formatted JSON response line from HTTPoison.AsyncChunk
and parses into a map
Watches a CRD resource for ADDED
, MODIFIED
, and DELETED
events from the Kubernetes API
Link to this section Types
Link to this type
t()
t() :: %Bonny.Watcher.Impl{ config: K8s.Conf.t(), mod: atom(), resource_version: String.t() | nil, spec: Bonny.CRD.t() }
Link to this section Functions
Dispatches an ADDED
, MODIFIED
, and DELETED
events to an operator
Link to this function
get_resource_version(state)
get_resource_version(Bonny.Watcher.Impl.t()) :: {:ok, Bonny.Watcher.Impl.t()} | :error
Returns the current resource version
Link to this function
new(operator)
Receives a plaintext formatted JSON response line from HTTPoison.AsyncChunk
and parses into a map
Link to this function
watch_for_changes(state, to)
watch_for_changes(Bonny.Watcher.Impl.t(), pid()) :: nil
Watches a CRD resource for ADDED
, MODIFIED
, and DELETED
events from the Kubernetes API