ResolveRepo retrieve a repository by name
(name string)
| 62 | |
| 63 | // ResolveRepo retrieve a repository by name |
| 64 | func (c *MultiRepoCache) ResolveRepo(name string) (*RepoCache, error) { |
| 65 | r, ok := c.repos[name] |
| 66 | if !ok { |
| 67 | return nil, fmt.Errorf("unknown repo") |
| 68 | } |
| 69 | return r, nil |
| 70 | } |
| 71 | |
| 72 | // Close will do anything that is needed to close the cache properly |
| 73 | func (c *MultiRepoCache) Close() error { |
no test coverage detected