workflows.events¶

Event definitions for the workflows app.

This module centralizes the set of supported workflow events and provides helpers to enumerate protocols and operations.

Classes¶

Event

Represents a single event.

Events

Central definition of all supported events in one place.

Module Contents¶

class workflows.events.Event[source]¶

Represents a single event.

key[source]¶

Internal name for the event.

protocol[source]¶

Protocol name (e.g., “EST”, “CMP”, “SCEP”); may be empty.

operation[source]¶

Protocol operation (e.g., “simpleenroll”); may be empty.

handler[source]¶

Service key that will process the event.

key: str[source]¶
protocol: str[source]¶
operation: str[source]¶
handler: str[source]¶
class workflows.events.Events[source]¶

Central definition of all supported events in one place.

est_simpleenroll[source]¶
est_simplereenroll[source]¶
est_cacerts = Event(

key=’est_cacerts’, protocol=’EST’, operation=’’, handler=’certificate_issued’,

)

est_csrattrs = Event(

key=’est_csrattrs’, protocol=’EST’, operation=’csrattrs’, handler=’certificate_request’,

)

cmp_certrequest = Event(

key=’cmp_certrequest’, protocol=’CMP’, operation=’certRequest’, handler=’certificate_request’,

)

cmp_revocationrequest = Event(

key=’cmp_revocationrequest’, protocol=’CMP’, operation=’revocationRequest’, handler=’certificate_request’,

)

scep_pkioperation = Event(

key=’scep_pkioperation’, protocol=’SCEP’, operation=’PKIOperation’, handler=’certificate_request’,

)

device_created[source]¶
device_onboarded[source]¶
device_deleted[source]¶
classmethod all()[source]¶

Return every Event defined on this class.

Returns:

All Event instances defined as class attributes.

Return type:

list[Event]

classmethod protocols()[source]¶

Return the unique list of non-empty protocol names.

Returns:

Sorted list of protocol identifiers used by defined events.

Return type:

list[str]

classmethod operations_for(protocol)[source]¶

Return all operations available for a given protocol.

Parameters:

protocol (str) – Protocol identifier (e.g. "est").

Returns:

Operations associated with the given protocol.

Return type:

list[str]