Kubernetes::ResourceWatcher(T)
Inherits Reference < Object
Constructors
new(k8s_client : Client, api_path : String, params : URI::Params = URI::Params.new)
SourceInstance methods
api_path
Sourceclose
Sourceon_change
Register a callback that fires on each watch event (ADDED, MODIFIED, DELETED). Multiple handlers can be registered; all are called in registration order.
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.
params
Sourcestart_watching!
Sourcestart_watching!
Source