7 Commits

Author SHA1 Message Date
Miguel Pires
d8eb8dc9df many: replace ErrNoState equality checks w/ errors.Is() 2022-05-20 10:07:29 +01:00
Michael Vogt
46ef068423 many: replace use of "sanity" with more inclusive naming
This commit replaces the use of "sanity" with more inclusive
naming. When "sanity" is used in a more general sense either
"validity" or "quick" is used.
2022-03-16 09:10:59 +01:00
Samuele Pedroni
716b13b5f9 daemon: simplify SyncResponse
it doesn't take Meta anymore
2021-06-03 13:49:26 +02:00
Samuele Pedroni
7ffffb1674 cmd/snap: display the error in snap debug seeding if seeding is in error (#9091)
For this include a seed-error in the /v2/debug?aspect=seeding debug API as well.

* daemon: support seed-error in /v2/debug?aspect=seeding
* cmd/snap: print seed-error if there is one in snap debug seeding
* cmd/snap: adjust seed-error test to new -- placeholder
2020-08-05 17:06:43 +02:00
Ian Johnson
e95457f05f daemon/api: use pointers to time.Time for debug seeding aspect
This, in conjunction with the associated change to `snap debug seeding` client
will help in determining when to output "-" for a time / duration that can't be
calculated because the start time is 0 and the end time is an actual time for
example, where now we output unexpected things like seeding taking 292 years,
instead we could just output `seed-completion: -`

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-07-29 07:28:11 -05:00
Ian Johnson
a11be98dd9 daemon/api_debug_seeding.go: adjust names of fields as per code-review
Also return internal error on key errors

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2020-07-22 14:16:58 -05:00
Paweł Stołowski
8f985216ea Add seeding debug api. 2020-07-17 12:45:08 +02:00