ByRemoteRepoSource looks up snapshots that have specified RemoteRepo as a source
(repo *RemoteRepo)
| 332 | |
| 333 | // ByRemoteRepoSource looks up snapshots that have specified RemoteRepo as a source |
| 334 | func (collection *SnapshotCollection) ByRemoteRepoSource(repo *RemoteRepo) []*Snapshot { |
| 335 | return collection.search(func(s *Snapshot) bool { |
| 336 | return s.SourceKind == SourceRemoteRepo && utils.StrSliceHasItem(s.SourceIDs, repo.UUID) |
| 337 | }, false) |
| 338 | } |
| 339 | |
| 340 | // ByLocalRepoSource looks up snapshots that have specified LocalRepo as a source |
| 341 | func (collection *SnapshotCollection) ByLocalRepoSource(repo *LocalRepo) []*Snapshot { |