mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-22 11:08:20 +00:00
Listing of packages in snapshot.
This commit is contained in:
1 parent
fe61ae1b41
commit
4d950b79ab
5 files changed
+39
No files matched your search
Vendored
+5
@@ -56,6 +56,11 @@ func (s *Snapshot) NumPackages() int {
|
||||
return s.packageRefs.Len()
|
||||
}
|
||||
|
||||
// RefList returns list of package refs in snapshot
|
||||
func (s *Snapshot) RefList() *PackageRefList {
|
||||
return s.packageRefs
|
||||
}
|
||||
|
||||
// Key is a unique id in DB
|
||||
func (s *Snapshot) Key() []byte {
|
||||
return []byte("S" + s.UUID)
|
||||
|
||||
Reference in new issue
Block a user