forked from juju/juju
-
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.
This change adds several domain methods to the resources domain. It adds: - StoreResource - StoreResourceAndIncrementCharmModifiedVersion - OpenResource - SetApplicationResource - SetUnitResource These methods complete the foundation of the resource domain. These methods differ from their state counterparts in several ways. In state, most equivilents of these methods also returned the resource record, even if they were only setting a resource. Here they do not. They are designed to each do only one thing, the thing that their name describes. In state there was an OpenResource and OpenResourceForUniter. This seperate method also set the unit resource doc. In the new domain methods, this linking should be done via the SetUnitResource instead. In state, the SetResource method did several things. It has now been factored out into the StoreResource, StoreResourceAndIncremenetCharmModifiedVersion and SetApplicationResource. This is to make it clearer what each method does.
- Loading branch information
Showing
12 changed files
with
2,450 additions
and
664 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.