OwlCyberSecurity - MANAGER
Edit File: imunify_patch_subscription.cpython-311.opt-1.pyc
� E�\hq � � � d Z ddlZddlmZ ddlmZmZ ddlmZ ddl m Z mZmZ ddl mZ ddlmZ dd lmZ dd lmZ ddlmZ ddlmZmZ dd lmZ erddlmZ ddlmZ ee� � Z G d� de e� � Z dS )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> � N)� getLogger)� TYPE_CHECKING�Any)�MessageType)�MessageSink� MessageSource�expect)�Scope)�get_imunify_patch_id)�VulnerabilityPatchTask)�ImunifyPatchSubscriptionAPI)�VulnerabilityHitStatus)�ImunifyPatchSubscription�VulnerabilityHit)� user_list)�ImunifyPatchUserId)�RefreshImunifyPatchSubscriptionc � � e Zd Zej Zd� Zd� Zdd�Zde de f fd�Z ee j � � dd �� � Zdeddfd�Zd ee ddfd�ZdS )�ImunifyPatchSubscriptionPluginc � � K � d S �N� )�self�loops �g/opt/imunify360/venv/lib/python3.11/site-packages/imav/malwarelib/plugins/imunify_patch_subscription.py�create_sinkz*ImunifyPatchSubscriptionPlugin.create_sink6 s � � � ��� c � � K � || _ d S r )�_sink)r r �sinks r � create_sourcez,ImunifyPatchSubscriptionPlugin.create_source9 s � � � ��� � � r �returnNc �6 � t j � � | _ d S r )�asyncio�Lock�_lock)r s r �__init__z'ImunifyPatchSubscriptionPlugin.__init__<