Fetch retrieve updates from a remote This does not change the local bugs or identities state
(remote string)
| 73 | // Fetch retrieve updates from a remote |
| 74 | // This does not change the local bugs or identities state |
| 75 | func (c *RepoCache) Fetch(remote string) (string, error) { |
| 76 | prefixes := make([]string, len(c.subcaches)) |
| 77 | for i, subcache := range c.subcaches { |
| 78 | prefixes[i] = subcache.GetNamespace() |
| 79 | } |
| 80 | |
| 81 | // fetch everything at once, to have a single auth step if required. |
| 82 | return c.repo.FetchRefs(remote, prefixes...) |
| 83 | } |
| 84 | |
| 85 | // RemoveAll deletes all entities from the cache and the disk. |
| 86 | func (c *RepoCache) RemoveAll() error { |