Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedDiscoveryInterface ¶
type CachedDiscoveryInterface interface { DiscoveryInterface // Invalidate enforces that no cached data that is older than the current time // is used. Invalidate() }
CachedDiscoveryInterface is a DiscoveryInterface with cache invalidation and freshness. Note that If the ServerResourcesForGroupVersion method returns a cache miss error, the user needs to explicitly call Invalidate to clear the cache, otherwise the same cache miss error will be returned next time.
type DiscoveryInterface ¶
type DiscoveryInterface interface { APIResources(ctx context.Context, proxy types.NamespacedName, branch string) ([]*discoverypb.APIResource, error) Close() error Watch(context.Context, *discoverypb.Watch_Request) chan *discoverypb.Watch_Response }
Click to show internal directories.
Click to hide internal directories.