Struct tuf::Tuf [] [src]

pub struct Tuf { /* fields omitted */ }

Interface for interacting with TUF repositories.

Methods

impl Tuf
[src]

Create a Tuf struct from an existing repo with the initial root keys pinned. This also calls initialize to ensure the needed paths exist.

Create a Tuf struct from a new repo. Must contain the root.json. The root is trusted with only verification on consistency, not authenticity. This call also calls initialize to ensure the needed paths exist.

Create and verify the necessary directory structure for a TUF repo.

Update the metadata from local and remote sources.

Lists all targets that are currently available. If a target is missing, it means the metadata chain that leads to it cannot be verified, and the target is therefore untrusted.

Reads a target from local storage or fetches it from a remote repository. Verifies the target. Fails if the target is missing, or if the metadata chain that leads to it cannot be verified.

Trait Implementations

impl Debug for Tuf
[src]

Formats the value using the given formatter.