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

Method LocalRepoCollection

deb/collections.go:71–80  ·  view source on GitHub ↗

LocalRepoCollection returns (or creates) new LocalRepoCollection

()

Source from the content-addressed store, hash-verified

69
70// LocalRepoCollection returns (or creates) new LocalRepoCollection
71func (factory *CollectionFactory) LocalRepoCollection() *LocalRepoCollection {
72 factory.Lock()
73 defer factory.Unlock()
74
75 if factory.localRepos == nil {
76 factory.localRepos = NewLocalRepoCollection(factory.db)
77 }
78
79 return factory.localRepos
80}
81
82// PublishedRepoCollection returns (or creates) new PublishedRepoCollection
83func (factory *CollectionFactory) PublishedRepoCollection() *PublishedRepoCollection {

Callers 15

checkRepoFunction · 0.95
aptlyRepoCreateFunction · 0.95
aptlyRepoListTxtFunction · 0.95
aptlyRepoRemoveFunction · 0.95
aptlySnapshotShowTxtFunction · 0.95
aptlyPublishShowTxtFunction · 0.95
aptlyRepoDropFunction · 0.95
aptlyRepoAddFunction · 0.95
aptlyRepoIncludeFunction · 0.95

Calls 1

NewLocalRepoCollectionFunction · 0.85

Tested by 7

SetUpTestMethod · 0.76
SetUpTestMethod · 0.64
SetUpTestMethod · 0.64