RemoteRepoCollection returns (or creates) new RemoteRepoCollection
()
| 45 | |
| 46 | // RemoteRepoCollection returns (or creates) new RemoteRepoCollection |
| 47 | func (factory *CollectionFactory) RemoteRepoCollection() *RemoteRepoCollection { |
| 48 | factory.Lock() |
| 49 | defer factory.Unlock() |
| 50 | |
| 51 | if factory.remoteRepos == nil { |
| 52 | factory.remoteRepos = NewRemoteRepoCollection(factory.db) |
| 53 | } |
| 54 | |
| 55 | return factory.remoteRepos |
| 56 | } |
| 57 | |
| 58 | // SnapshotCollection returns (or creates) new SnapshotCollection |
| 59 | func (factory *CollectionFactory) SnapshotCollection() *SnapshotCollection { |