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
 authenticated_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:

  URI, OK, status, timestamp, 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 190 of file rcynic.py.


Constructor & Destructor Documentation

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

Definition at line 211 of file rcynic.py.


Member Function Documentation

def rpki.rcynic.rcynic_xml_iterator.__iter__ (   self)

Definition at line 229 of file rcynic.py.

def rpki.rcynic.rcynic_xml_iterator.uri_to_filename (   self,
  uri 
)

Definition at line 223 of file rcynic.py.


Member Data Documentation

Definition at line 211 of file rcynic.py.

Definition at line 211 of file rcynic.py.

string rpki.rcynic.rcynic_xml_iterator.base_uri = "rsync://" [static]

Definition at line 221 of file rcynic.py.

Definition at line 211 of file rcynic.py.

Definition at line 211 of file rcynic.py.

Definition at line 211 of file rcynic.py.


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