Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/podman.cpython-310.pyc
o

i��d��@s0ddlmZmZmZmZGdd�deee�ZdS)�)�Plugin�RedHatPlugin�UbuntuPlugin�	PluginOptc@s\eZdZdZdZdZdZdZedddd	d
�edddd
d
�edddd�gZ	dd�Z
dd�ZdS)�Podmana<Podman is a daemonless container management engine, and this plugin is
    meant to provide diagnostic information for both the engine and the
    containers that podman is managing.

    General status information will be collected from podman commands, while
    detailed inspections of certain components will provide more insight
    into specific container problems. This detailed inspection is provided for
    containers, images, networks, and volumes. Per-entity inspections will be
    recorded in subdirs within sos_commands/podman/ for each of those types.
    zPodman containers�podman)�	container)r�allFz0collect for all containers, even terminated onesz�Enable collection for all containers that exist on the system regardless of their running state. This may cause a significant increase in sos archive size, especially when combined with the 'logs' option.)�default�desc�	long_desc�logsz)collect stdout/stderr logs for containersz�Capture 'podman logs' output for discovered containers. This may be useful or not depending on how/if the container produces stdout/stderr output. Use cautiously when also using the 'all' option.�sizez!collect image sizes for podman ps)r
rcCs�|�gd��|�ddd��gd�}|�dd�|D��|�d�r)|jd	d
d�|�dd
g�|jddd�}|ddkrYdd�|d��dd�D�}|jdd�|D�ddd�dd�|jd|�d�d�D�}|jdd�}|jdd�}|D]}|jd|d d!d�qv|D]}|\}	}
d"|	vr�|	n|
}|jd|d#d$d�q�|D]}|jd%|d&d'd�q�|�d(�r�|D]}
|jd)|
d d*d+�q�dSdS),N)�
HTTP_PROXY�HTTPS_PROXY�NO_PROXY�	ALL_PROXY�podman_list_images�podman_list_containers)z
podman imagesz	podman ps)
�info�imageszimages --digestszpod psz
port --all�pszps -azstats --no-stream --all�versionz	volume lscS�g|]}d|�qS)z	podman %s�)�.0�srr�;/usr/lib/python3/dist-packages/sos/report/plugins/podman.py�
<listcomp>Lsz Podman.setup.<locals>.<listcomp>rz
podman ps -as�d)�priorityzls -alhR /etc/cnizls -alhR /etc/containerszpodman network ls�podman_list_networks)�tags�statusrcSsg|]}|��d�qS�r)�split)r�pnrrrrZs�output�cSr)zpodman network inspect %sr)r�netrrrr[���networks�podman_network_inspect)�subdirr"cSsg|]}|d�qSr$r)r�crrrr_r*rr	)�runtime�get_all)r/zpodman inspect %s�
containers�podman_container_inspect�noner�podman_image_inspectzpodman volume inspect %s�volumes�podman_volume_inspectr
zpodman logs -t %s�2)r-r )	�add_env_var�add_cmd_tags�add_cmd_output�
get_option�collect_cmd_output�
splitlines�get_containers�get_container_images�get_container_volumes)�self�subcmds�pnets�netsr1rr5r�img�name�img_id�insp�vol�conrrr�setup2sj�
��
����
��
�

��zPodman.setupcCsd}|�d|d�dS)Nz=(?P<var>(pass|key|secret|PASS|KEY|SECRET).*?)=(?P<value>.*?)"z	*inspect*z\g<var>=********")�do_cmd_output_sub)rA�
env_regexprrr�postproc{s�zPodman.postprocN)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�packagesr�option_listrKrNrrrrrs(����IrN)�sos.report.pluginsrrrrrrrrr�<module>s


Spamworldpro Mini