forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o/devicestate: refactor remodeling code to use new snapstate API (can…
…onical#14898) * o/devicestate, overlord, daemon: refactor devicestate.Remodel api to take in a type that can wrap local snaps and components * o/devicestate: remove usage of type that can be replaced by type that contains components * o/devicestate: change remodeling to use new snapstate API and refactor in preparation for components The refactor makes it so all of the decisions about what to do for a snap in the incoming model are all in the same place. I feel that this is pretty useful now, and it will simplify adding the logic that is needed for handling components as well. * o/snapstate, o/devicestate, daemon: introduce snapstate.PathComponent that is used in snapstate.PathSnap * o/devicestate: eliminate some types that can be replaced with types from snapstate * o/devicestate: update some comments on the remodeler and methods * o/devicestate, o/snapstate: use snapstate.PathSnap as part of snapstate.PathInstallGoal api * o/devicestate: rename remodelTarget to remodelSnapTarget * o/snapstate: move PathComponent definition * o/devicestate: do not change a snap's channel during a remodel if the current snap is not tracking a channel * o/devicestate: remove unused function
- Loading branch information
1 parent
0a0cebb
commit 5305352
Showing
17 changed files
with
1,247 additions
and
993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.