HEX
Server: LiteSpeed
System: Linux atali.colombiahosting.com.co 5.14.0-570.12.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 13 06:11:55 EDT 2025 x86_64
User: coopserp (1713)
PHP: 8.2.29
Disabled: dl,exec,passthru,proc_open,proc_close,shell_exec,memory_limit,system,popen,curl_multi_exec,show_source,symlink,link,leak,listen,diskfreespace,tmpfile,ignore_user_abord,highlight_file,source,show_source,fpaththru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setid,posix_times,posix_ttyname,posix_uname,proc_get_status,proc_nice,proc_terminate
Upload Files
File: //usr/lib/python3.9/site-packages/tuned/profiles/functions/__pycache__/repository.cpython-39.pyc
a

,�g��@sVddlmZddlmZddlmZddlZddlm	Z	ej
��ZGdd�de�Z
dS)�)�ClassLoader)�Parser)�FunctionNcsTeZdZdZ�fdd�Zedd��Zdd�Zdd	�Zd
d�Z	dd
�Z
dd�Z�ZS)�
Repositoryzk
	Repository of functions used within TuneD profiles.
	The functions are loaded lazily (when first used).
	cstt|���i|_dS�N)�superr�__init__�
_functions��self��	__class__��G/usr/lib/python3.9/site-packages/tuned/profiles/functions/repository.pyrszRepository.__init__cCs|jSr)r	r
rrr�	functionsszRepository.functionscCsd|_tj|_t|_dS)Nztuned.profiles.functions)Z
_namespace�constsZFUNCTION_PREFIX�_prefixr�
_interfacer
rrr�_set_loader_parameterssz!Repository._set_loader_parameterscCs,t�d|�|�|�}|�}||j|<|S)Nzcreating function %s)�log�debugZ
load_classr	)r�
function_nameZfunction_clsZfunction_instancerrr�creates


zRepository.createcCs||jvr|�|�S|j|Sr)r	r)rrrrr�	load_func%s

zRepository.load_funccCsJt||j�sJ�t�d|�t|j���D]\}}||kr,|j|=q,dS)Nzremoving function %s)�
isinstancerrr�listr	�items)r�function�k�vrrr�delete*s
zRepository.deletecCst|��|�Sr)r�expand)r�srrrr!1szRepository.expand)
�__name__�
__module__�__qualname__�__doc__r�propertyrrrrr r!�
__classcell__rrrrr	s
	r)Ztuned.utils.class_loaderrZtuned.profiles.functions.parserrZtuned.profiles.functions.baserZ
tuned.logsZtunedZtuned.constsrZlogs�getrrrrrr�<module>s