RPKI Engine
1.0
|
Public Member Functions | |
def | __init__ |
def | __iter__ |
def | uri_to_filename |
Public Attributes | |
authenticated_old_subdir | |
rcynic_root | |
unauthenticated_subdir | |
xml_file | |
Static Public Attributes | |
string | base_uri = "rsync://" |
Iterate over validation_status entries in the XML output from an rcynic run. Yields a tuple for each entry: timestamp, generation, status, object where URI, status, and timestamp are the corresponding values from the XML element, OK is a boolean indicating whether validation was considered succesful, and object is a Python representation of the object in question. If OK is True, object will be from rcynic's authenticated output tree; otherwise, object will be from rcynic's unauthenticated output tree. Note that it is possible for the same URI to appear in more than one validation_status element; in such cases, the succesful case (OK True) should be the last entry (as rcynic will stop trying once it gets a good copy), but there may be multiple failures, which might or might not have different status codes.
def rpki::rcynic::rcynic_xml_iterator::__init__ | ( | self, | |
rcynic_root, | |||
xml_file, | |||
authenticated_old_subdir = "authenticated.old" , |
|||
unauthenticated_subdir = "unauthenticated" |
|||
) |
def rpki::rcynic::rcynic_xml_iterator::__iter__ | ( | self | ) |
Definition at line 240 of file rcynic.py.
References authenticated_old_subdir, unauthenticated_subdir, rpki::publication::publication_object_elt::uri_to_filename(), uri_to_filename(), and xml_file.
def rpki::rcynic::rcynic_xml_iterator::uri_to_filename | ( | self, | |
uri | |||
) |
Definition at line 234 of file rcynic.py.
References rpki::publication::client_elt::base_uri, and base_uri.
Referenced by __iter__().
Definition at line 224 of file rcynic.py.
Referenced by __iter__().
string rpki::rcynic::rcynic_xml_iterator::base_uri = "rsync://" [static] |
Definition at line 232 of file rcynic.py.
Referenced by uri_to_filename().
Definition at line 224 of file rcynic.py.
Referenced by __iter__().
Definition at line 224 of file rcynic.py.
Referenced by __iter__().