class

Kubernetes::ResourceWatcher(T)

Inherits Reference < Object

Constructors

new(k8s_client : Client, api_path : String, params : URI::Params = URI::Params.new)
Source

Instance methods

api_path
Source
close
Source
on_change

Register a callback that fires on each watch event (ADDED, MODIFIED, DELETED). Multiple handlers can be registered; all are called in registration order.

Source
on_reset

Register a callback that fires before a watch is restarted without a resource version. Consumers maintaining a cache must discard their old snapshot because events may have been compacted by the API server.

Source
params
Source
start_watching!
Source
start_watching!
Source

Nested types