MCPcopy Create free account
hub / github.com/aptly-dev/aptly / ByRemoteRepoSource

Method ByRemoteRepoSource

deb/snapshot.go:334–338  ·  view source on GitHub ↗

ByRemoteRepoSource looks up snapshots that have specified RemoteRepo as a source

(repo *RemoteRepo)

Source from the content-addressed store, hash-verified

332
333// ByRemoteRepoSource looks up snapshots that have specified RemoteRepo as a source
334func (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
341func (collection *SnapshotCollection) ByLocalRepoSource(repo *LocalRepo) []*Snapshot {

Callers 3

aptlyMirrorDropFunction · 0.80
apiMirrorsDropFunction · 0.80

Calls 2

searchMethod · 0.95
StrSliceHasItemFunction · 0.92

Tested by 1