WatchEvent¶
- class controller.storage.kubernetes.watcher.WatchEvent(action, object)¶
Bases:
GenericParsed event from a Kubernetes watch.
This model is intended only for use within the Kubernetes storage layer. It is interpreted by the callers of the generic watch class inside the per-object Kubernetes storage classes.
- Parameters:
action (
WatchEventType)object (
TypeVar(T))
Methods Summary
from_event(event, object_type)Create a
WatchEventfrom a watch event.Methods Documentation
- classmethod from_event(event, object_type)¶
Create a
WatchEventfrom a watch event.