MCPcopy Index your code
hub / github.com/aptly-dev/aptly / ByLocalRepoSource

Method ByLocalRepoSource

deb/snapshot.go:341–345  ·  view source on GitHub ↗

ByLocalRepoSource looks up snapshots that have specified LocalRepo as a source

(repo *LocalRepo)

Source from the content-addressed store, hash-verified

339
340// ByLocalRepoSource looks up snapshots that have specified LocalRepo as a source
341func (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
348func (collection *SnapshotCollection) BySnapshotSource(snapshot *Snapshot) []*Snapshot {

Callers 3

aptlyRepoDropFunction · 0.80
apiReposDropFunction · 0.80

Calls 2

searchMethod · 0.95
StrSliceHasItemFunction · 0.92

Tested by 1