-
Notifications
You must be signed in to change notification settings - Fork 292
Closed
Labels
enhancementrepositoryRelated to the repository implementationRelated to the repository implementation
Description
Observed
Presently, libtuf.py assumes that the developer knows the name of a delegated targets role before runtime. For example, retrieving the "unclaimed" role would be specified as repository.targets.unclaimed.
However, this is not always true or even possible. For example, how would a developer address in this manner a delegated targets role with the name recently-unclaimed? Furthermore, sometimes the developer may not known the names of the delegated targets role until name (perhaps because it is supplied by a user at the command-line).
Expected
We simply need a method for retrieving a delegated targets role by its name in a string. I will defer the exact mechanism to @vladimir-v-diaz , but a simple function should do the job.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementrepositoryRelated to the repository implementationRelated to the repository implementation