-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document public API for tuf.api and tuf.ngclient
Signed-off-by: Fridolin Pokorny <[email protected]>
- Loading branch information
Fridolin Pokorny
committed
Dec 18, 2022
1 parent
c6f8b58
commit bf15c00
Showing
4 changed files
with
90 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copyright New York University and the TUF contributors | ||
# SPDX-License-Identifier: MIT OR Apache-2.0 | ||
|
||
"""Public API for ``tuf.api``.""" | ||
|
||
from .metadata import ( | ||
BaseFile, | ||
DelegatedRole, | ||
Delegations, | ||
Key, | ||
MetaFile, | ||
Metadata, | ||
Role, | ||
Root, | ||
SPECIFICATION_VERSION, | ||
Signed, | ||
Snapshot, | ||
SuccinctRoles, | ||
TOP_LEVEL_ROLE_NAMES, | ||
TargetFile, | ||
Targets, | ||
Timestamp, | ||
) | ||
|
||
from .exceptions import ( | ||
BadVersionNumberError, | ||
DownloadError, | ||
DownloadHTTPError, | ||
DownloadLengthMismatchError, | ||
EqualVersionNumberError, | ||
ExpiredMetadataError, | ||
LengthOrHashMismatchError, | ||
RepositoryError, | ||
SlowRetrievalError, | ||
StorageError, | ||
UnsignedMetadataError, | ||
) | ||
|
||
__all__ = [ | ||
"SPECIFICATION_VERSION", | ||
"TOP_LEVEL_ROLE_NAMES", | ||
BadVersionNumberError.__name__, | ||
BaseFile.__name__, | ||
DelegatedRole.__name__, | ||
Delegations.__name__, | ||
DownloadError.__name__, | ||
DownloadHTTPError.__name__, | ||
DownloadLengthMismatchError.__name__, | ||
EqualVersionNumberError.__name__, | ||
ExpiredMetadataError.__name__, | ||
Key.__name__, | ||
LengthOrHashMismatchError.__name__, | ||
MetaFile.__name__, | ||
Metadata.__name__, | ||
RepositoryError.__name__, | ||
Role.__name__, | ||
Root.__name__, | ||
Signed.__name__, | ||
SlowRetrievalError.__name__, | ||
Snapshot.__name__, | ||
StorageError.__name__, | ||
SuccinctRoles.__name__, | ||
TargetFile.__name__, | ||
Targets.__name__, | ||
Timestamp.__name__, | ||
UnsignedMetadataError.__name__, | ||
] |
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
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
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