ListLocalIds list all the available local Entity's Id
(def Definition, repo repository.RepoData)
| 12 | |
| 13 | // ListLocalIds list all the available local Entity's Id |
| 14 | func ListLocalIds(def Definition, repo repository.RepoData) ([]entity.Id, error) { |
| 15 | refs, err := repo.ListRefs(fmt.Sprintf("refs/%s/", def.Namespace)) |
| 16 | if err != nil { |
| 17 | return nil, err |
| 18 | } |
| 19 | return entity.RefsToIds(refs), nil |
| 20 | } |
| 21 | |
| 22 | // Fetch retrieve updates from a remote |
| 23 | // This does not change the local entity state |