func TestCachedDiscoveryClient_Fresh(t *testing.T) { … }
func TestNewCachedDiscoveryClient_TTL(t *testing.T) { … }
func TestNewCachedDiscoveryClient_PathPerm(t *testing.T) { … }
func TestOpenAPIDiskCache(t *testing.T) { … }
func TestCachedDiscoveryClientUnaggregatedServerGroups(t *testing.T) { … }
func TestCachedDiscoveryClientAggregatedServerGroups(t *testing.T) { … }
func numFilesFound(dir string, filename string) (int, error) { … }
type fakeDiscoveryClient …
var _ …
func (c *fakeDiscoveryClient) RESTClient() restclient.Interface { … }
func (c *fakeDiscoveryClient) ServerGroups() (*metav1.APIGroupList, error) { … }
func (c *fakeDiscoveryClient) serverGroups() (*metav1.APIGroupList, error) { … }
func (c *fakeDiscoveryClient) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error) { … }
func (c *fakeDiscoveryClient) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error) { … }
func (c *fakeDiscoveryClient) ServerPreferredResources() ([]*metav1.APIResourceList, error) { … }
func (c *fakeDiscoveryClient) ServerPreferredNamespacedResources() ([]*metav1.APIResourceList, error) { … }
func (c *fakeDiscoveryClient) ServerVersion() (*version.Info, error) { … }
func (c *fakeDiscoveryClient) OpenAPISchema() (*openapi_v2.Document, error) { … }
func (d *fakeDiscoveryClient) OpenAPIV3() openapi.Client { … }
func (d *fakeDiscoveryClient) WithLegacy() discovery.DiscoveryInterface { … }
func groupNamesFromList(groups *metav1.APIGroupList) []string { … }
func preferredVersionsFromList(groups *metav1.APIGroupList) []string { … }
func groupVersionsFromGroups(groups *metav1.APIGroupList) []string { … }