NewCollectionFactory builds factory producing all kinds of collections
()
| 375 | |
| 376 | // NewCollectionFactory builds factory producing all kinds of collections |
| 377 | func (context *AptlyContext) NewCollectionFactory() *deb.CollectionFactory { |
| 378 | db, err := context.Database() |
| 379 | if err != nil { |
| 380 | Fatal(err) |
| 381 | } |
| 382 | return deb.NewCollectionFactory(db) |
| 383 | } |
| 384 | |
| 385 | // PackagePool returns instance of PackagePool |
| 386 | func (context *AptlyContext) PackagePool() aptly.PackagePool { |