<p>guys
I want to watch all kubernetes events and I find the source code here: <a href="https://github.com/kubernetes/client-go/blob/master/informers/events/v1beta1/event.go" rel="nofollow noreferrer">https://github.com/kubernetes/client-go/blob/master/informers/events/v1beta1/event.go</a></p>

<p>However, I can not find any examples about how to use the functions.
Can anyone help me, thanks a lot!</p>

<p>One or several of these could help:</p>

<ul>
<li><p>"watches" for (quote) "...efficient change notifications on resources" - see <a href="https://kubernetes.io/docs/reference/using-api/api-concepts/" rel="nofollow noreferrer">Kubernetes API Concepts</a> as well as the <a href="https://kubernetes.io/docs/reference/#api-reference" rel="nofollow noreferrer">API Reference</a> for a particular version. Example: <code>GET /api/v1/namespaces/test/pods?watch=1&amp;resourceVersion=10245</code></p></li>
<li><p>Event <a href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#-strong-read-operations-strong--291" rel="nofollow noreferrer">Read Operations</a>.</p></li>
<li><p><code>kubectl get</code> allows you to specify the -w or --watch flag to start watching updates to a particular object.</p></li>
</ul>

<p>I believe the events are for a particular resource or collection of resources, not for all resources.</p>
