<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
3
À<×eú  ã               @   s@   d dl mZ d dlZd dlZejjƒ ZdgZG dd„ deƒZ	dS )é    )ÚPluginLoaderNÚ
Repositoryc                   s@   e Zd Z‡ fdd„Zedd„ ƒZdd„ Zdd„ Zd	d
„ Z‡  Z	S )r   c	       	         sJ   t t| ƒjƒ  tƒ | _|| _|| _|| _|| _|| _	|| _
|| _|| _d S )N)Úsuperr   Ú__init__ÚsetÚ_pluginsÚ_monitor_repositoryÚ_storage_factoryÚ_hardware_inventoryÚ_device_matcherÚ_device_matcher_udevÚ_plugin_instance_factoryÚ_global_cfgÚ
_variables)	ÚselfZmonitor_repositoryZstorage_factoryZhardware_inventoryZdevice_matcherZdevice_matcher_udevZplugin_instance_factoryZ
global_cfgÚ	variables)Ú	__class__© ú /usr/lib/python3.6/repository.pyr      s    zRepository.__init__c             C   s   | j S )N)r   )r   r   r   r   Úplugins   s    zRepository.pluginsc             C   s   d| _ d| _tjjj| _d S )Nztuned.pluginsZplugin_)Z
_namespaceÚ_prefixÚtunedr   ÚbaseZPluginÚ
_interface)r   r   r   r   Ú_set_loader_parameters   s    z!Repository._set_loader_parametersc          	   C   sN   t jd| ƒ | j|ƒ}|| j| j| j| j| j| j| j	| j
ƒ}| jj|ƒ |S )Nzcreating plugin %s)ÚlogÚdebugZload_pluginr   r	   r
   r   r   r   r   r   r   Úadd)r   Zplugin_nameZ
plugin_clsZplugin_instancer   r   r   Úcreate    s    
zRepository.createc             C   s6   t || jƒst‚tjd| ƒ |jƒ  | jj|ƒ d S )Nzremoving plugin %s)Ú
isinstancer   ÚAssertionErrorr   r   Zcleanupr   Úremove)r   Zpluginr   r   r   Údelete(   s    zRepository.delete)
Ú__name__Ú
__module__Ú__qualname__r   Úpropertyr   r   r   r"   Ú__classcell__r   r   )r   r   r   	   s
   )
Ztuned.utils.plugin_loaderr   Ztuned.plugins.baser   Z
tuned.logsZlogsÚgetr   Ú__all__r   r   r   r   r   Ú<module>   s
   
