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

List of all members.

Public Member Functions

def bsc
def make_reply_clone_hook
def self
def serve_fetch_all
def serve_fetch_handle
def serve_fetch_one_maybe
def serve_pre_save_hook

Static Public Attributes

tuple handles = ()
 self_handle = None
 self_id = None

Detailed Description

Virtual class for top-level left-right protocol data elements.

Definition at line 50 of file left_right.py.


Member Function Documentation

def rpki::left_right::data_elt::bsc (   self)
def rpki::left_right::data_elt::make_reply_clone_hook (   self,
  r_pdu 
)
Set handles when cloning, including _id -> _handle translation.

Reimplemented from rpki::xml_utils::data_elt.

Definition at line 74 of file left_right.py.

References rpki::sql::sql_persistent::gctx, rpki::rpkid::ca_obj::gctx, rpki::rpkid::ca_detail_obj::gctx, rpki::rpkid::child_cert_obj::gctx, rpki::rpkid::revoked_cert_obj::gctx, rpki::rpkid::roa_obj::gctx, rpki::rpkid::ghostbuster_obj::gctx, handles, and self_handle.

Referenced by rpki::xml_utils::data_elt::make_reply().

Here is the caller graph for this function:

def rpki::left_right::data_elt::self (   self)
def rpki::left_right::data_elt::serve_fetch_all (   self)
Find the objects on which a list method should operate.

Reimplemented in rpki::left_right::self_elt.

Definition at line 105 of file left_right.py.

References rpki::publication::config_elt::element_name, rpki::publication::client_elt::element_name, rpki::left_right::self_elt::element_name, rpki::publication::certificate_elt::element_name, rpki::publication::crl_elt::element_name, rpki::publication::manifest_elt::element_name, rpki::publication::roa_elt::element_name, rpki::publication::ghostbuster_elt::element_name, rpki::publication::report_error_elt::element_name, rpki::left_right::bsc_elt::element_name, rpki::left_right::repository_elt::element_name, rpki::left_right::parent_elt::element_name, rpki::left_right::child_elt::element_name, rpki::left_right::list_resources_elt::element_name, rpki::left_right::list_roa_requests_elt::element_name, rpki::left_right::list_ghostbuster_requests_elt::element_name, rpki::left_right::list_published_objects_elt::element_name, rpki::left_right::list_received_resources_elt::element_name, rpki::left_right::report_error_elt::element_name, rpki::sql::sql_persistent::gctx, rpki::rpkid::ca_obj::gctx, rpki::rpkid::ca_detail_obj::gctx, rpki::rpkid::child_cert_obj::gctx, rpki::rpkid::revoked_cert_obj::gctx, rpki::rpkid::roa_obj::gctx, rpki::rpkid::ghostbuster_obj::gctx, self_handle, and rpki::sql::sql_persistent::sql_fetch_where().

Referenced by rpki::xml_utils::data_elt::serve_list().

Here is the call graph for this function:

Here is the caller graph for this function:

def rpki::left_right::data_elt::serve_fetch_handle (   cls,
  gctx,
  self_id,
  handle 
)
Find an object based on its handle.

Reimplemented in rpki::left_right::self_elt.

Definition at line 90 of file left_right.py.

Referenced by rpki::left_right::self_elt::serve_fetch_one_maybe().

Here is the caller graph for this function:

def rpki::left_right::data_elt::serve_fetch_one_maybe (   self)
Find the object on which a get, set, or destroy method should
operate, or which would conflict with a create method.

Reimplemented in rpki::left_right::self_elt.

Definition at line 96 of file left_right.py.

References rpki::publication::config_elt::element_name, rpki::publication::client_elt::element_name, rpki::left_right::self_elt::element_name, rpki::publication::certificate_elt::element_name, rpki::publication::crl_elt::element_name, rpki::publication::manifest_elt::element_name, rpki::publication::roa_elt::element_name, rpki::publication::ghostbuster_elt::element_name, rpki::publication::report_error_elt::element_name, rpki::left_right::bsc_elt::element_name, rpki::left_right::repository_elt::element_name, rpki::left_right::parent_elt::element_name, rpki::left_right::child_elt::element_name, rpki::left_right::list_resources_elt::element_name, rpki::left_right::list_roa_requests_elt::element_name, rpki::left_right::list_ghostbuster_requests_elt::element_name, rpki::left_right::list_published_objects_elt::element_name, rpki::left_right::list_received_resources_elt::element_name, rpki::left_right::report_error_elt::element_name, rpki::sql::sql_persistent::gctx, rpki::rpkid::ca_obj::gctx, rpki::rpkid::ca_detail_obj::gctx, rpki::rpkid::child_cert_obj::gctx, rpki::rpkid::revoked_cert_obj::gctx, rpki::rpkid::roa_obj::gctx, rpki::rpkid::ghostbuster_obj::gctx, self_handle, and rpki::sql::sql_persistent::sql_fetch_where1().

Referenced by rpki::xml_utils::data_elt::serve_create().

Here is the call graph for this function:

Here is the caller graph for this function:

def rpki::left_right::data_elt::serve_pre_save_hook (   self,
  q_pdu,
  r_pdu,
  cb,
  eb 
)
Hook to do _handle => _id translation before saving.

self is always the object to be saved to SQL.  For create
operations, self and q_pdu are be the same object; for set
operations, self is the pre-existing object from SQL and q_pdu is
the set request received from the the IRBE.

Reimplemented from rpki::xml_utils::data_elt.

Reimplemented in rpki::left_right::bsc_elt.

Definition at line 112 of file left_right.py.

References rpki::sql::sql_persistent::gctx, rpki::rpkid::ca_obj::gctx, rpki::rpkid::ca_detail_obj::gctx, rpki::rpkid::child_cert_obj::gctx, rpki::rpkid::revoked_cert_obj::gctx, rpki::rpkid::roa_obj::gctx, rpki::rpkid::ghostbuster_obj::gctx, handles, and self_id.

Referenced by rpki::xml_utils::data_elt::serve_create().

Here is the caller graph for this function:


Member Data Documentation


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