ByLocalRepoSource looks up snapshots that have specified LocalRepo as a source
(repo *LocalRepo)
| 339 | |
| 340 | // ByLocalRepoSource looks up snapshots that have specified LocalRepo as a source |
| 341 | func (collection *SnapshotCollection) ByLocalRepoSource(repo *LocalRepo) []*Snapshot { |
| 342 | return collection.search(func(s *Snapshot) bool { |
| 343 | return s.SourceKind == SourceLocalRepo && utils.StrSliceHasItem(s.SourceIDs, repo.UUID) |
| 344 | }, false) |
| 345 | } |
| 346 | |
| 347 | // BySnapshotSource looks up snapshots that have specified snapshot as a source |
| 348 | func (collection *SnapshotCollection) BySnapshotSource(snapshot *Snapshot) []*Snapshot { |