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