관리-도구
편집 파일: post_action.cpython-311.opt-1.pyc
� ��g� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m Z ddlmZ ee � � Z G d� dee � � Zd S ) u This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see <https://www.imunify360.com/legal/eula> � )� getLogger)�Dict)�MessageType)�MessageSink� MessageSource�expect)�Scopec �x � e Zd Zej j Zej Z d� Z d� Z ee j � � defd�� � ZdS )� PostActionc � � K � d S �N� )�self�loops �M/opt/imunify360/venv/lib/python3.11/site-packages/imav/plugins/post_action.py�create_sinkzPostAction.create_sink( s � � � ��� c � � K � || _ d S r )�_sink)r r �sinks r � create_sourcezPostAction.create_source+ s � � � ��� � � r �messagec � �z K � |� dd � � }|sd S ||d | j �� � � d {V �� d S )N�post_action�scan_id)r r )�popr )r r r s r �process_post_actionzPostAction.process_post_action. s\ � � � ��k�k�-��6�6��� ��F� �k�'�)�"4�4�:�F�F�F�F�F�F�F�F�F�F�F�Fr N)�__name__� __module__�__qualname__r �ProcessingOrder�POST_ACTION�PROCESSING_ORDERr �IM360�SCOPEr r r r �MalwareCleanupr r r r r r r $ s� � � � � � �"�2�>���K�E� � � �� � � �V�K�&�'�'�G�� G� G� G� (�'�G� G� Gr r N)�__doc__�loggingr �typingr �"defence360agent.contracts.messagesr �!defence360agent.contracts.pluginsr r r �defence360agent.utilsr r �loggerr r r r �<module>r. s� ��� �* � � � � � � � � � � � � :� :� :� :� :� :�� � � � � � � � � � (� '� '� '� '� '� ��8� � ��G� G� G� G� G��m� G� G� G� G� Gr