6 Commits

Author SHA1 Message Date
Zeyad Yasser
54c6a1d8c3 refactor: replace IsNotFound usages for errors.Is(err, &NotFoundError{}) 2023-02-09 16:02:40 +00:00
Samuele Pedroni
35c76d6f1a seed: ReadSystemEssentialAndBetterEarliestTime (#10005)
ReadSystemEssentialAndBetterEarliestTime retrieves in one go
information about the model and essential snaps of the given types
for the Core 20 recovery system seed specified by seedDir and label
(which cannot be empty).
It can operate even if current system time is unreliable by taking
a earliestTime lower bound for current time.
It returns as well an improved lower bound by considering appropriate
assertions in the seed.

* asserts: Batch.CommitToAndObserve

have a variant of CommitTo that supports a callback to consider each
assertion immediately after it has been added to the database, at
which point it also verified
2021-03-18 18:40:16 +01:00
Samuele Pedroni
4c9c206b4f clarify test 2019-08-23 09:29:24 +02:00
Samuele Pedroni
f9f19ec9d2 make Precheck an option to CommitTo instead of a separate method
as discussed/suggested

clarify docs
2019-08-23 09:25:58 +02:00
Samuele Pedroni
8793f8f36a test AddStream with an empty one 2019-08-19 17:01:56 +02:00
Samuele Pedroni
a12ffaa007 move and generalise assertstate.Batch to asserts itself
next steps are updating places using Batch and changing assertsstate
2019-08-18 08:56:47 +02:00