Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemCacheRoundTripper ¶
func NewMemCacheRoundTripper(rt http.RoundTripper, c *httpcache.MemoryCache) http.RoundTripper
Types ¶
type Cache ¶ added in v0.27.0
type Cache struct {
// contains filtered or unexported fields
}
Cache is an in-memory store for API discovery objects.
func (*Cache) NewClientForConfig ¶ added in v0.27.0
func (c *Cache) NewClientForConfig(config *restclient.Config) (CachedDiscoveryClient, error)
NewClientForConfig returns a cached discovery client backed by the calling in-memory cache store.
type CachedDiscoveryClient ¶
type CachedDiscoveryClient interface { ServerResourcesForGroupVersion(string) (*metav1.APIResourceList, error) ServerResources() ([]*metav1.APIResourceList, error) ServerGroupsAndResources() ([]*metav1.APIGroup, []*metav1.APIResourceList, error) ServerGroups() (*metav1.APIGroupList, error) RESTClient() restclient.Interface ServerPreferredResources() ([]*metav1.APIResourceList, error) ServerPreferredNamespacedResources() ([]*metav1.APIResourceList, error) ServerVersion() (*version.Info, error) OpenAPISchema() (*openapi_v2.Document, error) Fresh() bool Invalidate() }
Click to show internal directories.
Click to hide internal directories.