aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cache')
-rw-r--r--cache/repo_cache.go2
-rw-r--r--cache/repo_cache_common.go10
2 files changed, 12 insertions, 0 deletions
diff --git a/cache/repo_cache.go b/cache/repo_cache.go
index 563fac6b..eeb7fb90 100644
--- a/cache/repo_cache.go
+++ b/cache/repo_cache.go
@@ -25,6 +25,8 @@ const formatVersion = 2
const defaultMaxLoadedBugs = 1000
var _ repository.RepoCommon = &RepoCache{}
+var _ repository.RepoConfig = &RepoCache{}
+var _ repository.RepoKeyring = &RepoCache{}
// RepoCache is a cache for a Repository. This cache has multiple functions:
//
diff --git a/cache/repo_cache_common.go b/cache/repo_cache_common.go
index 1e330a4a..95e2f7bb 100644
--- a/cache/repo_cache_common.go
+++ b/cache/repo_cache_common.go
@@ -20,6 +20,16 @@ func (c *RepoCache) LocalConfig() repository.Config {
return c.repo.LocalConfig()
}
+// GlobalConfig give access to the global scoped configuration
+func (c *RepoCache) GlobalConfig() repository.Config {
+ return c.repo.GlobalConfig()
+}
+
+// AnyConfig give access to a merged local/global configuration
+func (c *RepoCache) AnyConfig() repository.ConfigRead {
+ return c.repo.AnyConfig()
+}
+
func (c *RepoCache) Keyring() repository.Keyring {
return c.repo.Keyring()
}