Skip to content

Commit

Permalink
Metada API: document timestamp.snapshot_meta
Browse files Browse the repository at this point in the history
Document snapshot_meta as the API that should be used when interacting
with timestamp meta information about snapshot.
Also, document that "meta" is an internal detail mimicking the spec
file format.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
  • Loading branch information
MVrachev committed Jul 13, 2021
1 parent 0390644 commit c7e9e45
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tuf/api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,11 @@ class Timestamp(Signed):
Timestamp contains information about the snapshot Metadata file.
Attributes:
meta: A dictionary of filenames to MetaFiles. The only valid key value
is the snapshot filename, as defined by the specification.
snapshot_meta: MetaFile instance used as API for interacting with
snapshot meta information.
meta: Implementation detail mimicking the spec file format. A dictionary
of filenames to MetaFiles. The only valid key value is the snapshot
filename, as defined by the specification.
"""

_signed_type = "timestamp"
Expand Down

0 comments on commit c7e9e45

Please sign in to comment.