RPKI Engine
1.0
|
Public Member Functions | |
def | fetch |
def | serve_fetch_one_maybe |
def | serve_set |
def | startElement |
Public Attributes | |
config_id | |
Static Public Attributes | |
tuple | attributes = ("action", "tag") |
XML attributes for this element. | |
string | element_name = "config" |
tuple | elements = ("bpki_crl",) |
XML elements contained by this element. | |
tuple | sql_template = rpki.sql.template("config", "config_id", ("bpki_crl", rpki.x509.CRL)) |
int | wired_in_config_id = 1 |
<config/> element. This is a little weird because there should never be more than one row in the SQL config table, but we have to put the BPKI CRL somewhere and SQL is the least bad place available. So we reuse a lot of the SQL machinery, but we nail config_id at 1, we don't expose it in the XML protocol, and we only support the get and set actions.
Definition at line 61 of file publication.py.
def rpki::publication::config_elt::fetch | ( | cls, | |
gctx | |||
) |
Fetch the config object from SQL. This requires special handling because of the weird way we treat config_id.
Definition at line 89 of file publication.py.
def rpki::publication::config_elt::serve_fetch_one_maybe | ( | self | ) |
Find the config object on which a get or set method should operate.
Definition at line 106 of file publication.py.
References config_id, 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, and rpki::sql::sql_persistent::sql_fetch().
Referenced by rpki::xml_utils::data_elt::serve_create().
def rpki::publication::config_elt::serve_set | ( | self, | |
r_msg, | |||
cb, | |||
eb | |||
) |
Handle a set action. This requires special handling because config doesn't support the create method.
Reimplemented from rpki::xml_utils::data_elt.
Definition at line 96 of file publication.py.
References config_id, 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, and rpki::sql::sql_persistent::sql_fetch().
Referenced by rpki::xml_utils::data_elt::serve_dispatch().
def rpki::publication::config_elt::startElement | ( | self, | |
stack, | |||
name, | |||
attrs | |||
) |
StartElement() handler for config object. This requires special handling because of the weird way we treat config_id.
Reimplemented from rpki::xml_utils::base_elt.
Definition at line 80 of file publication.py.
Referenced by rpki::xml_utils::sax_handler::startElementNS().
tuple rpki::publication::config_elt::attributes = ("action", "tag") [static] |
XML attributes for this element.
Reimplemented from rpki::xml_utils::base_elt.
Definition at line 72 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().
Definition at line 83 of file publication.py.
Referenced by serve_fetch_one_maybe(), and serve_set().
string rpki::publication::config_elt::element_name = "config" [static] |
Definition at line 73 of file publication.py.
Referenced by rpki::xml_utils::base_elt::endElement(), rpki::publication::publication_object_elt::endElement(), rpki::xml_utils::data_elt::endElement(), rpki::xml_utils::base_elt::make_elt(), rpki::xml_utils::data_elt::make_reply(), rpki::xml_utils::data_elt::serve_create(), rpki::left_right::data_elt::serve_fetch_all(), rpki::left_right::data_elt::serve_fetch_one_maybe(), and rpki::xml_utils::base_elt::startElement().
tuple rpki::publication::config_elt::elements = ("bpki_crl",) [static] |
XML elements contained by this element.
Reimplemented from rpki::xml_utils::base_elt.
Definition at line 74 of file publication.py.
Referenced by irbe_cli::cmd_elt_mixin::client_getopt(), rpki::xml_utils::data_elt::endElement(), rpki::xml_utils::base_elt::startElement(), and rpki::xml_utils::data_elt::toXML().
tuple rpki::publication::config_elt::sql_template = rpki.sql.template("config", "config_id", ("bpki_crl", rpki.x509.CRL)) [static] |
Definition at line 76 of file publication.py.
Referenced by rpki::xml_utils::data_elt::serve_create(), rpki::sql::sql_persistent::sql_decode(), rpki::sql::sql_persistent::sql_delete(), rpki::sql::sql_persistent::sql_encode(), and rpki::sql::sql_persistent::sql_store().
int rpki::publication::config_elt::wired_in_config_id = 1 [static] |
Definition at line 78 of file publication.py.