Skip to content

libtuf.py needs method for dynamically retrieving a delegated targets role #165

@trishankkarthik

Description

@trishankkarthik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions