type FakeEventsV1beta1 … func (c *FakeEventsV1beta1) Events(namespace string) v1beta1.EventInterface { … } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. func (c *FakeEventsV1beta1) RESTClient() rest.Interface { … }