Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemCacheRoundTripper ¶
func NewMemCacheRoundTripper(rt http.RoundTripper) http.RoundTripper
Types ¶
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() Reset() }
func NewCachedDiscoveryClient ¶
func NewCachedDiscoveryClient(delegate discovery.DiscoveryInterface, ttl time.Duration) CachedDiscoveryClient
NewCachedDiscoveryClient creates a new CachedDiscoveryClient which caches discovery information in memory and will stay up-to-date if Invalidate is called with regularity.
func NewCachedDiscoveryClientForConfig ¶
func NewCachedDiscoveryClientForConfig(config *restclient.Config, ttl time.Duration) (CachedDiscoveryClient, error)
NewCachedDiscoveryClientForConfig creates a new DiscoveryClient for the given config, and wraps the created client in a CachedDiscoveryClient. The provided configuration is updated with a custom transport that understands cache responses.
Click to show internal directories.
Click to hide internal directories.