403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/reporting/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/reporting/__pycache__/events.cpython-314.pyc
+
��im&��*�Rt^RIt^RIt^RIt^RIt^RIHt^RIH	t	^RI
HtHt^RI
HtRtRtRt]P$!]4t!R	R
]4t]!R4t!RR4t!R
R]4tRRlt]P6R3RltRt!RR4tRtR#)z�
events for reporting.

The events here are designed to be used with reporting.
They can be published to registered handlers with report_event.
N)�List)�performance)�available_handlers�instantiated_handler_registry)�ReportingHandler�finish�start�	cloudinitc�&a�]tRt^toRtRtVtR#)�_namesetc�6�W9dV#\RV,4h)z%s not a valid value)�AttributeError)�self�names&&�</usr/lib/python3/dist-packages/cloudinit/reporting/events.py�__getattr__�_nameset.__getattr__ s���<��K��3�d�:�;�;��N)�__name__�
__module__�__qualname__�__firstlineno__r�__static_attributes__�__classdictcell__��
__classdict__s@rrrs����<�<rrc�>a�]tRt^)toRt]R3RltRtRtRt	Vt
R#)�ReportingEventz"Encapsulation of event formatting.Nc�t�WnW nW0nW@nVf\P!4pWPnR#�N)�
event_typer�description�origin�time�	timestamp)rr!rr"r#r%s&&&&&&r�__init__�ReportingEvent.__init__,s/��%���	�&�������	�	��I�"�rc�d�RPVPVPVP4#)z"The event represented as a string.z
{0}: {1}: {2})�formatr!rr"�rs&r�	as_string�ReportingEvent.as_string<s*���%�%��O�O�T�Y�Y��(8�(8�
�	
rc
�~�RVPRVPRVPRVPRVP/#)z&The event represented as a dictionary.rr"r!r#r%)rr"r!r#r%r*s&r�as_dict�ReportingEvent.as_dictBs=��
�D�I�I��4�+�+��$�/�/��d�k�k�����
�	
r)r"r!rr#r%)rrrr�__doc__�DEFAULT_EVENT_ORIGINr&r+r.rrrs@rrr)s$����,�$��
#� 
�
�
rrc�`aa�]tRt^Mto]P
R3V3RlltRtV3RltRt	Vt
V;t#)�FinishReportingEventNc�<�\\V`\W4W@nVf.pWPnW0nV\9d\RV,4hR#)NzInvalid result: %s)	�superr3r&�FINISH_EVENT_TYPE�result�
post_files�duration�status�
ValueError)rrr"r9r7r8�	__class__s&&&&&&�rr&�FinishReportingEvent.__init__NsT���	�"�D�2��t�	
������J�$�� �
�����1�F�:�;�;� rc��RPVPVPVPVPVP
4#)z'{0}: {1}: {2}: {3} (duration: {4:.3f}s))r)r!rr7r"r9r*s&rr+�FinishReportingEvent.as_stringas:��8�?�?��O�O��I�I��K�K�����M�M�
�	
rc��<�\\V`4pVPVR&\	VP
^4VR&VP'd\VP4VR&V#)z'The event represented as json friendly.r7r9�files)r5r3r.r7�roundr9r8�_collect_file_info)r�datar<s& �rr.�FinishReportingEvent.as_dictjsU����)�4�8�:������X�� �����2��Z���?�?�?�.�t���?�D��M��r)r9r8r7)rrrrr:�SUCCESSr&r+r.rr�
__classcell__)r<rs@@rr3r3Ms%�����~�~��
<�&
��rr3c�>�V'g/p\PP4UUu0uFwr#W!9gK
VkK	ppp\\PP44pVF&p\
V4V9dKVPV4K(	R#uuppi)a�Report an event to all registered event handlers
except those whose type is in excluded_handler_types.

This should generally be called via one of the other functions in
the reporting module.

:param excluded_handler_types:
     List of handlers types to exclude from reporting the event to.
:param event_type:
    The type of the event; this should be a constant from the
    reporting module.
N)r�registered_items�items�listr�values�type�
publish_event)�event�excluded_handler_types�	hndl_type�hndl_cls�excluded_handler_classes�handlers�handlers&&     r�report_eventrVts���"�!#��$6�#F�#F�#L�#L�#N� �#N��I��.�	��#N�� �(,�%�6�6�=�=�?�(�H�����=�4�4�����e�$��� s
�
B�Bc�4�\WW#VR7p\V4#)zNReport a "finish" event.

See :py:func:`.report_event` for parameter details.
)r8)r3rV)�
event_name�event_descriptionr9r7r8rOs&&&&& r�report_finish_eventrZ�s"��
!��x�J�
�E����rc�8�\\W4p\V4#)aReport a "start" event.

:param event_name:
    The name of the event; this should be a topic which events would
    share (e.g. it will be the same for start and finish events).

:param event_description:
    A human-readable description of the event that has occurred.
)r�START_EVENT_TYPErV)rXrYrOs&& r�report_start_eventr]�s��
�+�Z�K�E����rc��a�]tRt^�toRtRRR]PR3RltRtRt	Rt
]R4t]PR4t]R	4t]PR
4tRtRtR
tVtR#)�ReportEventStacka�Context Manager for using :py:func:`report_event`

This enables calling :py:func:`report_start_event` and
:py:func:`report_finish_event` through a context manager.

:param name:
    the name of the event

:param description:
    the event's description, passed on to :py:func:`report_start_event`

:param message:
    the description to use for the finish event. defaults to
    :param:description.

:param parent:
:type parent: :py:class:ReportEventStack or None
    The parent of this event.  The parent is populated with
    results of all its children.  The name used in reporting
    is <parent.name>/<name>

:param reporting_enabled:
    Indicates if reporting events should be generated.
    If not provided, defaults to the parent's value, or True if no parent
    is provided.

:param result_on_exception:
    The result value to set if an exception is caught. default
    value is FAIL.

:param post_files:
    Can hold filepaths of files that are to get posted/created
    regarding a given event. Something like success or failure information
    in a given log file. For each filepath, if it's a valid regular file
    it will get: read & encoded as base64 at the close of the event.
    Default value, if None, is an empty list.
Nc�Z�W@nWnW nW0nW`n\
PVnRVnVf.pWpn	VfV'dVPpMRpWPn
V'd$RPVPV34VnMVPVn/Vn
R#)NT�/)�parentrr"�message�result_on_exceptionr:rFr7�start_timestampr8�reporting_enabled�join�fullname�children)rrr"rcrbrfrdr8s&&&&&&&&rr&�ReportEventStack.__init__�s������	�&����#6� ��n�n���#������J�$���$��$*�$<�$<�!�$(�!�!2����H�H��O�O����D�M�!�I�I�D�M���
rc�\�RVP:RVP:RVP:R2#)zReportEventStack(z, z, reporting_enabled=�))rr"rfr*s&r�__repr__�ReportEventStack.__repr__s%���I�I�����"�"�
�	
rc�2�\PVn\P!4VnVP'd!\VPVP4VP'd$RVPPVP&V#)N)NN)
r:rFr7r$�	monotonicrerfr]rhr"rbrirr*s&r�	__enter__�ReportEventStack.__enter__sb���n�n���#�~�~�/����!�!�!��t�}�}�d�.>�.>�?��;�;�;�.:�D�K�K� � ����+��rc��\P\P3F@pVPP	4Fwpwr4W18XgKW0P
3uu#	KB	VPVP
3#r )r:�FAIL�WARNrirJrcr7)r�cand_result�_name�value�_msgs&    r�_childrens_finish_info�'ReportEventStack._childrens_finish_infos_��"�K�K����5�K�(,�
�
�(;�(;�(=�$��}���'�!�<�<�0�0�)>�6����T�\�\�*�*rc��VP#r )�_resultr*s&rr7�ReportEventStack.results���|�|�rc�L�V\9d\RV,4hWnR#)z'%s' not a valid resultN)r:r;r}�rrxs&&rr7r~s ������6��>�?�?��rc�N�VPe
VP#VP#r )�_messager"r*s&rrc�ReportEventStack.message"s"���=�=�$��=�=� ����rc��WnR#r )r�r�s&&rrcr�(s���
rc�b�V'dVPVP3#VP4#r )rdrcrz)r�excs&&r�_finish_info�ReportEventStack._finish_info,s)����,�,�d�l�l�;�;��*�*�,�,rc�v�VPV4wrEVP'd%WE3VPPVP&VP'd^VP
e(\P!4VP
,
pMRp\VPVVVVPR7R#R#)Ng)r9r7r8)r�rbrirrfrer$rprZrhr8)r�exc_type�	exc_value�	tracebackr7�msgr9s&&&&   r�__exit__�ReportEventStack.__exit__2s����)�)�)�4�
���;�;�;�/5�m�D�K�K� � ����+��!�!�!��#�#�/��>�>�+�d�.B�.B�B������
�
��!���?�?�
�"r)
r�r}rir"rhrcrrbr8rfr7rdre)rrrrr0r:rtr&rmrqrz�propertyr7�setterrcr�r�rrrs@rr_r_�s�����$�T���"�K�K��&�P
��+������]�]����
� �� �

�^�^����-��rr_c
���V'gR#.pVF�p\PPV4'gRpMy\P!RV24;_uu_4\VR4;_uu_4p\P!VP44P4pRRR4RRR4VPRVRXRR/4K�	V# +'giL5;i +'giL@;i)NzReading �rb�path�content�encoding�base64)�osr��isfiler�Timed�openr��	b64encode�read�decode�append)rA�ret�fnamer��fps&    rrCrCDs�����
�C����w�w�~�~�e�$�$��G��"�"�X�e�W�#5�6�6���t�9�9�� �*�*�2�7�7�9�5�<�<�>��9�6�	�
�
�F�E�9�g�z�8�L�M���J�9�9��6�6�s$�C#�03C�#C#�C �C#�#C3)rFrurtr ) r0r��logging�os.pathr�r$�typingrr	r�cloudinit.reportingrr�cloudinit.reporting.handlersrr6r\r1�	getLoggerr�LOG�setrr:rr3rVrFrZr]r_rCrrr�<module>r�s���
������!��:�����"��
����!��<�s�<�
�-�	.��!
�!
�H$�>�$�N%�F�>�>���"�O�O�d
r

Youez - 2016 - github.com/yon3zu
LinuXploit