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

List of all members.

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

Detailed Description

<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.


Member Function Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:


Member Data Documentation

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]
tuple rpki::publication::config_elt::elements = ("bpki_crl",) [static]
tuple rpki::publication::config_elt::sql_template = rpki.sql.template("config", "config_id", ("bpki_crl", rpki.x509.CRL)) [static]

Definition at line 78 of file publication.py.


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