Package com.io7m.sunburst.inventory.api
Interface SBTransactionReadableType
- All Superinterfaces:
AutoCloseable,SBTransactionCloseableType
- All Known Subinterfaces:
SBTransactionType
The type of transactions that can be read.
-
Method Summary
Modifier and TypeMethodDescriptionblobFile(SBPackageIdentifier identifier, SBPath path) Obtain the file associated with the blob in the given package.Retrieve a blob.blobList()List all available blobs.List all blobs that are not referenced by any packages.packageGet(SBPackageIdentifier identifier) packages()Methods inherited from interface com.io7m.sunburst.inventory.api.SBTransactionCloseableType
close
-
Method Details
-
blobFile
Obtain the file associated with the blob in the given package.- Parameters:
identifier- The package identifierpath- The file path- Returns:
- A file path
- Throws:
SBInventoryException- On errors
-
packagesUpdatedSince
- Parameters:
time- The comparison time- Returns:
- The installed set of packages that have been updated since the given time
- Throws:
SBInventoryException- On errors
-
packages
- Returns:
- The installed set of packages
- Throws:
SBInventoryException- On errors
-
packageGet
- Parameters:
identifier- The package identifier- Returns:
- The package with the given identifier, if one is installed
- Throws:
SBInventoryException- On errors
-
blobGet
Retrieve a blob.- Parameters:
hash- The hash value- Returns:
- A blob, if one exists
- Throws:
SBInventoryException- On errors
-
blobList
List all available blobs.- Returns:
- The available blobs
- Throws:
SBInventoryException- On errors
-
blobsUnreferenced
List all blobs that are not referenced by any packages.- Returns:
- The unreferenced blobs
- Throws:
SBInventoryException- On errors
-