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

Method ByUUID

deb/publish.go:1466–1475  ·  view source on GitHub ↗

ByUUID looks up repository by uuid

(uuid string)

Source from the content-addressed store, hash-verified

1464
1465// ByUUID looks up repository by uuid
1466func (collection *PublishedRepoCollection) ByUUID(uuid string) (*PublishedRepo, error) {
1467 collection.loadList()
1468
1469 for _, r := range collection.list {
1470 if r.UUID == uuid {
1471 return r, nil
1472 }
1473 }
1474 return nil, fmt.Errorf("published repo with uuid %s not found", uuid)
1475}
1476
1477// BySnapshot looks up repository by snapshot source
1478func (collection *PublishedRepoCollection) BySnapshot(snapshot *Snapshot) []*PublishedRepo {

Callers 2

walkUpTreeFunction · 0.45
LoadShallowMethod · 0.45

Calls 1

loadListMethod · 0.95

Tested by

no test coverage detected