RPKI Engine
1.0
|
Public Member Functions | |
def | endElement |
def | make_publish |
def | make_withdraw |
def | raise_if_error |
def | serve_dispatch |
def | serve_publish |
def | serve_withdraw |
def | toXML |
def | uri_to_filename |
Static Public Attributes | |
tuple | attributes = ("action", "tag", "client_handle", "uri") |
XML attributes for this element. | |
payload = None | |
payload_type = None |
Virtual class for publishable objects. These have very similar syntax, differences lie in underlying datatype and methods. XML methods are a little different from the pattern used for objects that support the create/set/get/list/destroy actions, but publishable objects don't go in SQL either so these classes would be different in any case.
Definition at line 148 of file publication.py.
def rpki::publication::publication_object_elt::endElement | ( | self, | |
stack, | |||
name, | |||
text | |||
) |
Handle a publishable element element.
Reimplemented from rpki::xml_utils::base_elt.
Definition at line 162 of file publication.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, payload, and payload_type.
Referenced by rpki::xml_utils::sax_handler::endElementNS().
def rpki::publication::publication_object_elt::make_publish | ( | cls, | |
uri, | |||
obj, | |||
tag = None |
|||
) |
Construct a publication PDU.
Definition at line 250 of file publication.py.
def rpki::publication::publication_object_elt::make_withdraw | ( | cls, | |
uri, | |||
obj, | |||
tag = None |
|||
) |
Construct a withdrawal PDU.
Definition at line 258 of file publication.py.
def rpki::publication::publication_object_elt::raise_if_error | ( | self | ) |
No-op, since this is not a <report_error/> PDU.
Definition at line 265 of file publication.py.
def rpki::publication::publication_object_elt::serve_dispatch | ( | self, | |
r_msg, | |||
cb, | |||
eb | |||
) |
Action dispatch handler.
Definition at line 180 of file publication.py.
References rpki::http::http_queue::client, serve_publish(), serve_withdraw(), rpki::publication::report_error_elt::tag, rpki::left_right::report_error_elt::tag, rpki::rpkid::child_cert_obj::uri(), rpki::rpkid::roa_obj::uri(), and rpki::rpkid::ghostbuster_obj::uri().
def rpki::publication::publication_object_elt::serve_publish | ( | self | ) |
Publish an object.
Definition at line 205 of file publication.py.
References rpki::rpkid::child_cert_obj::uri(), rpki::rpkid::roa_obj::uri(), rpki::rpkid::ghostbuster_obj::uri(), and uri_to_filename().
Referenced by serve_dispatch().
def rpki::publication::publication_object_elt::serve_withdraw | ( | self | ) |
Withdraw an object.
Definition at line 220 of file publication.py.
References rpki::rpkid::child_cert_obj::uri(), rpki::rpkid::roa_obj::uri(), rpki::rpkid::ghostbuster_obj::uri(), and uri_to_filename().
Referenced by serve_dispatch().
def rpki::publication::publication_object_elt::toXML | ( | self | ) |
Generate XML element for publishable object.
Reimplemented from rpki::xml_utils::base_elt.
Definition at line 171 of file publication.py.
References rpki::up_down::base_elt::make_elt(), rpki::xml_utils::base_elt::make_elt(), and payload.
Referenced by rpki::xml_utils::base_elt::__str__(), rpki::xml_utils::msg::__str__(), and rpki::up_down::message_pdu::__str__().
def rpki::publication::publication_object_elt::uri_to_filename | ( | self | ) |
Convert a URI to a local filename.
Definition at line 234 of file publication.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, rpki::rpkid::child_cert_obj::uri(), rpki::rpkid::roa_obj::uri(), and rpki::rpkid::ghostbuster_obj::uri().
Referenced by rpki::rcynic::rcynic_xml_iterator::__iter__(), serve_publish(), and serve_withdraw().
tuple rpki::publication::publication_object_elt::attributes = ("action", "tag", "client_handle", "uri") [static] |
XML attributes for this element.
Reimplemented from rpki::xml_utils::base_elt.
Definition at line 158 of file publication.py.
Referenced by irbe_cli::cmd_elt_mixin::client_getopt(), rpki::xml_utils::base_elt::make_elt(), and rpki::xml_utils::base_elt::read_attrs().
rpki::publication::publication_object_elt::payload = None [static] |
Definition at line 160 of file publication.py.
Referenced by endElement(), rpki::up_down::message_pdu::make_query(), and toXML().
rpki::publication::publication_object_elt::payload_type = None [static] |
Reimplemented in rpki::publication::ghostbuster_elt, rpki::publication::roa_elt, rpki::publication::manifest_elt, rpki::publication::crl_elt, and rpki::publication::certificate_elt.
Definition at line 159 of file publication.py.
Referenced by endElement().