diff options
Diffstat (limited to 'cache/cache.go')
-rw-r--r-- | cache/cache.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cache/cache.go b/cache/cache.go index 779b95b0..07c5be52 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -23,6 +23,7 @@ type Cacher interface { type RepoCacher interface { ResolveBug(id string) (BugCacher, error) ResolveBugPrefix(prefix string) (BugCacher, error) + AllBugIds() ([]string, error) ClearAllBugs() } @@ -155,6 +156,10 @@ func (c RepoCache) ResolveBugPrefix(prefix string) (BugCacher, error) { return cached, nil } +func (c RepoCache) AllBugIds() ([]string, error) { + return bug.ListLocalIds(c.repo) +} + func (c RepoCache) ClearAllBugs() { c.bugs = make(map[string]BugCacher) } |