11 Commits

Author SHA1 Message Date
Miguel Pires
79c5ac14b2 many: remove usages of deprecated io/ioutil package (#13768)
* many: remove usages of deprecated io/ioutil package

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>

* .golangci.yml: remove errcheck ignore rule for io/ioutil

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>

* run-checks: prevent new usages of io/ioutil

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>

---------

Signed-off-by: Miguel Pires <miguel.pires@canonical.com>
2024-04-03 23:23:24 +02:00
Samuele Pedroni
4a8ecace54 devicestate: Unregister deletes the device key pair as well
* daemon,tests: support forgetting device serial via API

this is done by posting {"action":"forget"} to /v2/model/serial

a flag no-registration-until-reboot is also supported

* many: more consistent naming Delete => DeleteByName on keypair mgrs

we actually want to introduce a Delete by key id on some of them now

* asserts: implement KeypairManager.Delete

* devicestate: Unregister deletes the device key pair as well

* tests: test device key deletion in generic-unregister

* asserts: avoid skipping the GPGKeypairManager.Delete test

pair --yes to --batch in the test
2021-12-02 18:04:53 +01:00
Samuele Pedroni
ac660055e1 failed to -> cannot, to follow decided main error style 2016-06-09 17:36:50 +02:00
Gustavo Niemeyer
2dbc8a4c35 Code moved to github.com/snapcore/snapd. 2016-05-24 09:26:23 -03:00
Michael Vogt
e7d17b4f38 move AtomicWriteFile and CurrentHomeDir() to osutil 2016-03-01 10:32:51 +01:00
Michael Vogt
17727c5c04 Split helpers up and move stuff into osutil and new cp pkg 2016-02-29 17:01:46 +01:00
Samuele Pedroni
51c52cf10d these have seen changes in 2016 2016-01-22 14:54:04 +01:00
Samuele Pedroni
b6d886ff2f more code and tests cleanups 2016-01-08 19:40:36 +01:00
Samuele Pedroni
1438d2a02a wip: export filesystem backstore and keypair mgr 2016-01-08 17:14:26 +01:00
Samuele Pedroni
cbad508586 simplify KeypairManager interface basing it on keyids 2016-01-07 17:56:52 +01:00
Samuele Pedroni
cae6f80168 support pluggable backstores for storing assertions 2015-12-17 15:04:27 +01:00