Listing of packages in snapshot.

This commit is contained in:
Andrey Smirnov
2013-12-23 14:29:41 +04:00
parent fe61ae1b41
commit 4d950b79ab
5 changed files with 39 additions and 0 deletions
+5
View File
@@ -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)