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

Function NewRemoteRepoCollection

deb/remote.go:887–892  ·  view source on GitHub ↗

NewRemoteRepoCollection loads RemoteRepos from DB and makes up collection

(db database.Storage)

Source from the content-addressed store, hash-verified

885
886// NewRemoteRepoCollection loads RemoteRepos from DB and makes up collection
887func NewRemoteRepoCollection(db database.Storage) *RemoteRepoCollection {
888 return &RemoteRepoCollection{
889 db: db,
890 cache: make(map[string]*RemoteRepo),
891 }
892}
893
894func (collection *RemoteRepoCollection) search(filter func(*RemoteRepo) bool, unique bool) []*RemoteRepo {
895 result := []*RemoteRepo(nil)

Callers 6

RemoteRepoCollectionMethod · 0.85
SetUpTestMethod · 0.85
TestAddByNameMethod · 0.85
TestByUUIDMethod · 0.85
TestDropMethod · 0.85

Calls

no outgoing calls

Tested by 5

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