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

Method SnapshotCollection

deb/collections.go:59–68  ·  view source on GitHub ↗

SnapshotCollection returns (or creates) new SnapshotCollection

()

Source from the content-addressed store, hash-verified

57
58// SnapshotCollection returns (or creates) new SnapshotCollection
59func (factory *CollectionFactory) SnapshotCollection() *SnapshotCollection {
60 factory.Lock()
61 defer factory.Unlock()
62
63 if factory.snapshots == nil {
64 factory.snapshots = NewSnapshotCollection(factory.db)
65 }
66
67 return factory.snapshots
68}
69
70// LocalRepoCollection returns (or creates) new LocalRepoCollection
71func (factory *CollectionFactory) LocalRepoCollection() *LocalRepoCollection {

Callers 15

aptlySnapshotVerifyFunction · 0.95
aptlySnapshotRenameFunction · 0.95
aptlyRepoCreateFunction · 0.95
aptlySnapshotDropFunction · 0.95
aptlySnapshotMergeFunction · 0.95
aptlySnapshotPullFunction · 0.95
aptlySnapshotListTxtFunction · 0.95
aptlySnapshotShowTxtFunction · 0.95
aptlyPublishShowTxtFunction · 0.95
aptlyRepoDropFunction · 0.95

Calls 1

NewSnapshotCollectionFunction · 0.85

Tested by 5

SetUpTestMethod · 0.64
SetUpTestMethod · 0.64
SetUpTestMethod · 0.64