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