RPKI Engine  1.0
Public Member Functions | Public Attributes | Static Public Attributes
rpki::rcynic::rcynic_xml_iterator Class Reference
Inheritance diagram for rpki::rcynic::rcynic_xml_iterator:
Inheritance graph
Collaboration diagram for rpki::rcynic::rcynic_xml_iterator:
Collaboration graph

List of all members.

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://"

Detailed Description

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.

Definition at line 203 of file rcynic.py.


Constructor & Destructor Documentation

def rpki::rcynic::rcynic_xml_iterator::__init__ (   self,
  rcynic_root,
  xml_file,
  authenticated_old_subdir = "authenticated.old",
  unauthenticated_subdir = "unauthenticated" 
)

Definition at line 224 of file rcynic.py.


Member Function Documentation

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.

Here is the call graph for this function:

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__().

Here is the caller graph for this function:


Member Data Documentation

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.

Definition at line 224 of file rcynic.py.

Referenced by __iter__().

Definition at line 224 of file rcynic.py.

Referenced by __iter__().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties