Documentation
¶
Index ¶
Constants ¶
View Source
const (
CacheParam = "cache"
)
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get extracts the ResolverCache from the context. If the cache is not available in the context (e.g., in tests), it falls back to the shared cache with a logger from the context.
Types ¶
type CacheConfigStore ¶
type CacheConfigStore struct {
// contains filtered or unexported fields
}
func NewCacheConfigStore ¶
func NewCacheConfigStore(cacheConfigName string, logger configmap.Logger) *CacheConfigStore
func (*CacheConfigStore) GetResolverConfig ¶
func (store *CacheConfigStore) GetResolverConfig() map[string]string
func (*CacheConfigStore) ToContext ¶
func (store *CacheConfigStore) ToContext(ctx context.Context) context.Context
ToContext returns a new context with the cache's configuration data stored in it.
func (*CacheConfigStore) WatchConfigs ¶
func (store *CacheConfigStore) WatchConfigs(w configmap.Watcher)
type ImmutabilityChecker ¶
ImmutabilityChecker extends the base Resolver interface with cache-specific methods. Each resolver implements IsImmutable to define what "auto" mode means in their context.
Click to show internal directories.
Click to hide internal directories.