forked from theupdateframework/python-tuf
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: Update delegation-related tutorial sections
In "Targets" section: - Remove `repository.targets('<delegated rolename>').add_target(...)` command, because it is not copy-pastable and delegations have not yet been covered at that point. - Update the "remove targets" snippet to remove the previously added "myproject/file4.txt" instead of "file3.txt", because we will add "myproject/file4.txt" to the delegated "unclaimed" role in the Delegation section. In "Delegation" section: - Change "unclaimed" delegation pattern from 'foo*.tgz', for which no file exists in the tutorial, to 'myproject/*.txt'. - Add "myproject/file4.txt" to the delegated unclaimed targets role - Remove the command that updates the version of the "unclaimed" role, because this should not be done manually, and the add_target call shows just as well how to access delegated roles. - Comment out the revoke delgated role section, leaving a TODO note for required updates (should be ticketized). In "Delegate to Hashed Bins": - Add call to remove target "myproject/file4.txt" from "unclaimed", because it is further delgated to hashed bins - Add dirty_roles() call to show all the newly created bins - Add mark_dirty() and writeall() calls to create a consistent state of the repo Signed-off-by: Lukas Puehringer <[email protected]>
- Loading branch information
Showing
1 changed file
with
35 additions
and
27 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