-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1590 from jku/docs-tweaking
API doc improvements
- Loading branch information
Showing
18 changed files
with
250 additions
and
163 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,4 @@ | ||
Metadata class | ||
--------------------------------- | ||
|
||
.. autoclass:: tuf.api.metadata.Metadata |
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,4 @@ | ||
Root class | ||
--------------------------------- | ||
|
||
.. autoclass:: tuf.api.metadata.Root |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
Snapshot class | ||
--------------------------------- | ||
|
||
.. autoclass:: tuf.api.metadata.Snapshot |
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,27 @@ | ||
Supporting classes | ||
--------------------------------- | ||
|
||
The Metadata API includes multiple classes that are used by the top-level | ||
ones (Root, Timestamp, Snapshot, Targets): | ||
|
||
.. autosummary:: | ||
:nosignatures: | ||
|
||
tuf.api.metadata.DelegatedRole | ||
tuf.api.metadata.Delegations | ||
tuf.api.metadata.Key | ||
tuf.api.metadata.MetaFile | ||
tuf.api.metadata.Role | ||
tuf.api.metadata.TargetFile | ||
|
||
.. autoclass:: tuf.api.metadata.DelegatedRole | ||
|
||
.. autoclass:: tuf.api.metadata.Delegations | ||
|
||
.. autoclass:: tuf.api.metadata.Key | ||
|
||
.. autoclass:: tuf.api.metadata.MetaFile | ||
|
||
.. autoclass:: tuf.api.metadata.Role | ||
|
||
.. autoclass:: tuf.api.metadata.TargetFile |
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,4 @@ | ||
Targets class | ||
--------------------------------- | ||
|
||
.. autoclass:: tuf.api.metadata.Targets |
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,4 @@ | ||
Timestamp class | ||
--------------------------------- | ||
|
||
.. autoclass:: tuf.api.metadata.Timestamp |
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 |
---|---|---|
@@ -1,18 +1,19 @@ | ||
Metadata API | ||
=============== | ||
|
||
The low-level Metadata API contains two modules: | ||
.. toctree:: | ||
|
||
* :doc:`tuf.api.metadata` contains the actual Metadata abstraction | ||
that higher level libraries and application code should use to interact | ||
with TUF metadata. This abstraction provides safe reading and writing to | ||
supported file formats and helper functions for accessing and modifying | ||
the metadata contents. | ||
* :doc:`tuf.api.serialization` covers serializing the metadata into | ||
specific wire formats (like json). | ||
tuf.api.metadata.metadata | ||
tuf.api.metadata.root | ||
tuf.api.metadata.timestamp | ||
tuf.api.metadata.snapshot | ||
tuf.api.metadata.targets | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
tuf.api.metadata | ||
tuf.api.metadata.supporting | ||
tuf.api.serialization | ||
|
||
.. automodule:: tuf.api.metadata | ||
:no-members: |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Serialization | ||
============================= | ||
|
||
.. automodule:: tuf.api.serialization | ||
|
||
JSON serialization | ||
----------------------------- | ||
|
||
.. automodule:: tuf.api.serialization.json | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
|
@@ -2,6 +2,4 @@ Configuration | |
============= | ||
|
||
.. automodule:: tuf.ngclient.config | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
|
@@ -2,6 +2,4 @@ Fetcher | |
============ | ||
|
||
.. automodule:: tuf.ngclient.fetcher | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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 |
---|---|---|
|
@@ -2,5 +2,3 @@ Updater | |
========= | ||
|
||
.. automodule:: tuf.ngclient.updater | ||
:members: | ||
:special-members: __init__ |
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
Oops, something went wrong.