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

Function NewLocalRepoCollection

deb/local.go:100–105  ·  view source on GitHub ↗

NewLocalRepoCollection loads LocalRepos from DB and makes up collection

(db database.Storage)

Source from the content-addressed store, hash-verified

98
99// NewLocalRepoCollection loads LocalRepos from DB and makes up collection
100func NewLocalRepoCollection(db database.Storage) *LocalRepoCollection {
101 return &LocalRepoCollection{
102 db: db,
103 cache: make(map[string]*LocalRepo),
104 }
105}
106
107func (collection *LocalRepoCollection) search(filter func(*LocalRepo) bool, unique bool) []*LocalRepo {
108 result := []*LocalRepo(nil)

Callers 7

SetUpTestMethod · 0.85
LocalRepoCollectionMethod · 0.85
SetUpTestMethod · 0.85
TestAddByNameMethod · 0.85
TestByUUIDMethod · 0.85
TestDropMethod · 0.85

Calls

no outgoing calls

Tested by 6

SetUpTestMethod · 0.68
SetUpTestMethod · 0.68
TestAddByNameMethod · 0.68
TestByUUIDMethod · 0.68
TestDropMethod · 0.68