%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/podman.cpython-312.pyc

�

i��d���6�ddlmZmZmZmZGd�deee�Zy)�)�Plugin�RedHatPlugin�UbuntuPlugin�	PluginOptc�p�eZdZdZdZdZdZdZedddd	�
�edddd
�
�eddd��gZ	d�Z
d�Zy)�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r
c��|jgd��|jddd��gd�}|j|D�cgc]}d|z��	c}�|jd�r|jdd	�
�|jddg�|j	d
d��}|ddk(rY|dj�ddD�cgc]}|j
�d��}}|j|D�cgc]}d|z��	c}dd��|jd|jd���D�cgc]}|d��	}}|jd��}	|jd��}
|D]}|jd|zdd���|	D]&}|\}
}d|
vr|
n|}|jd|zd d!���(|
D]}|jd"|zd#d$���|jd%�r|D]}|jd&|zdd'�(��yycc}wcc}wcc}wcc}w))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 lsz	podman %srz
podman ps -as�d)�priorityzls -alhR /etc/cnizls -alhR /etc/containerszpodman network ls�podman_list_networks)�tags�statusr�output�zpodman network inspect %s�networks�podman_network_inspect)�subdirrr	r)�runtime�get_all)r&zpodman inspect %s�
containers�podman_container_inspect�noner�podman_image_inspectzpodman volume inspect %s�volumes�podman_volume_inspectrzpodman logs -t %s�2)r%r)
�add_env_var�add_cmd_tags�add_cmd_output�
get_option�collect_cmd_output�
splitlines�split�get_containers�get_container_images�get_container_volumes)�self�subcmds�s�pnets�pn�nets�net�cr(rr,r
�img�name�img_id�insp�vol�cons                  �;/usr/lib/python3/dist-packages/sos/report/plugins/podman.py�setupzPodman.setup2s������
�	�	
���1�1�
�	�

��	
���g�>��[�1�_�>�?��?�?�6�"�����#��>�����&�
�	�
�'�'�(;�-C�(�E����?�a��,1�(�O�,F�,F�,H���,L�M�b�B�H�H�J�q�M�M�D�M����=A�!�69�+�c�1�!� �'?�
 �
A�
�-�-�h�6:�o�o�e�6L�.�N�
��A�a�D�
�
�
��*�*�8�*�<���,�,�X�,�>��#�	A�I���� 3�i� ?�'3�%?�
 �
A�	A�
�	=�C��L�D�&�!��-�4�6�D���� 3�d� :�8�%;�
 �
=�	=��	>�C���� :�S� @�'0�%<�
 �
>�	>�
�?�?�6�"�!�
F���#�#�$7�#�$=�+7�"�$�F�
F�#��U?��N��!��
s�G'�8G,�#G1�G6c�.�d}|jd|d�y)Nz=(?P<var>(pass|key|secret|PASS|KEY|SECRET).*?)=(?P<value>.*?)"z	*inspect*z\g<var>=********")�do_cmd_output_sub)r9�
env_regexps  rG�postproczPodman.postproc{s��(�
����{�J�3�	5�N)�__name__�
__module__�__qualname__�__doc__�
short_desc�plugin_name�profiles�packagesr�option_listrHrL�rMrGrrso��	�%�J��K��H��H�	�%��I�>�	@�	�&�%�B�:�	<�	�&�%�:�	<��K�&GF�R5rMrN)�sos.report.pluginsrrrrrrWrMrG�<module>rYs ��M�L�|5�V�\�<�|5rM

Zerion Mini Shell 1.0