Ë
    ú}àiS  ã                   óL   — d dl mZ ddlmZmZ  G d„ de«      Z G d„ de«      Zy)	é   )Úerrorsé   )Ú
CollectionÚModelc                   ór   — e Zd ZdZd„ Zed„ «       Zed„ «       Zed„ «       Zd„ Z	dd„Z
dd„Zd	„ Zdd
„Zdd„Zy)ÚPluginz!
    A plugin on the server.
    c                 óP   — d| j                   j                  › d| j                  › d�S )Nú<z: 'z'>)Ú	__class__Ú__name__Úname©Úselfs    ú\/home/factor_ks/STREAMA2026/tests/venv/lib/python3.12/site-packages/docker/models/plugins.pyÚ__repr__zPlugin.__repr__	   s&   € Ø�4—>‘>×*Ñ*Ð+¨3¨t¯y©y¨k¸Ð<Ð<ó    c                 ó8   — | j                   j                  d«      S )z$
        The plugin's name.
        ÚName©ÚattrsÚgetr   s    r   r   zPlugin.name   s   € ð
 �z‰z�~‰~˜fÓ%Ð%r   c                 ó8   — | j                   j                  d«      S )z0
        Whether the plugin is enabled.
        ÚEnabledr   r   s    r   ÚenabledzPlugin.enabled   s   € ð
 �z‰z�~‰~˜iÓ(Ð(r   c                 ó8   — | j                   j                  d«      S )zG
        A dictionary representing the plugin's configuration.
        ÚSettingsr   r   s    r   ÚsettingszPlugin.settings   s   € ð
 �z‰z�~‰~˜jÓ)Ð)r   c                 ó„   — | j                   j                  j                  | j                  |«       | j	                  «        y)a  
            Update the plugin's settings.

            Args:
                options (dict): A key-value mapping of options.

            Raises:
                :py:class:`docker.errors.APIError`
                    If the server returns an error.
        N)ÚclientÚapiÚconfigure_pluginr   Úreload)r   Úoptionss     r   Ú	configurezPlugin.configure!   s)   € ð 	�‰�‰×(Ñ(¨¯©°GÔ<Ø�‰�r   c                 ó„   — | j                   j                  j                  | j                  |«       | j	                  «        y)zô
            Disable the plugin.

            Args:
                force (bool): Force disable. Default: False

            Raises:
                :py:class:`docker.errors.APIError`
                    If the server returns an error.
        N)r   r    Údisable_pluginr   r"   ©r   Úforces     r   ÚdisablezPlugin.disable/   s)   € ð 	�‰�‰×&Ñ& t§y¡y°%Ô8Ø�‰�r   c                 ó„   — | j                   j                  j                  | j                  |«       | j	                  «        y)zõ
            Enable the plugin.

            Args:
                timeout (int): Timeout in seconds. Default: 0

            Raises:
                :py:class:`docker.errors.APIError`
                    If the server returns an error.
        N)r   r    Úenable_pluginr   r"   )r   Útimeouts     r   ÚenablezPlugin.enable>   s)   € ð 	�‰�‰×%Ñ% d§i¡i°Ô9Ø�‰�r   c                 ó`   — | j                   j                  j                  | j                  «      S )a  
            Push the plugin to a remote registry.

            Returns:
                A dict iterator streaming the status of the upload.

            Raises:
                :py:class:`docker.errors.APIError`
                    If the server returns an error.
        )r   r    Úpush_pluginr   r   s    r   ÚpushzPlugin.pushL   s!   € ð �{‰{�‰×*Ñ*¨4¯9©9Ó5Ð5r   c                 ód   — | j                   j                  j                  | j                  |¬«      S )a.  
            Remove the plugin from the server.

            Args:
                force (bool): Remove even if the plugin is enabled.
                    Default: False

            Raises:
                :py:class:`docker.errors.APIError`
                    If the server returns an error.
        )r(   )r   r    Úremove_pluginr   r'   s     r   ÚremovezPlugin.removeY   s&   € ð �{‰{�‰×,Ñ,¨T¯Y©Y¸eÐ,ÓDÐDr   Nc              #   óJ  K  — | j                   rt        j                  d«      ‚|€| j                  }| j                  j
                  j                  |«      }| j                  j
                  j                  | j                  ||«      E d{  –—†  | j                  «        y7 Œ­w)aR  
            Upgrade the plugin.

            Args:
                remote (string): Remote reference to upgrade to. The
                    ``:latest`` tag is optional and is the default if omitted.
                    Default: this plugin's name.

            Returns:
                A generator streaming the decoded API logs
        z)Plugin must be disabled before upgrading.N)	r   r   ÚDockerErrorr   r   r    Úplugin_privilegesÚupgrade_pluginr"   )r   ÚremoteÚ
privilegess      r   ÚupgradezPlugin.upgradeg   sŠ   è ø€ ð �<Š<Ü×$Ñ$Ø;óð ð ˆ>Ø—Y‘YˆFØ—[‘[—_‘_×6Ñ6°vÓ>ˆ
Ø—;‘;—?‘?×1Ñ1Ø�I‰IØØó
÷ 	
ð 	
ð
 	�‰�ð	
ús   ‚B	B#ÂB!ÂB#©F)é    ©N)r   Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr   r   r   r$   r)   r-   r0   r3   r:   © r   r   r   r      sg   „ ñò=ð ñ&ó ð&ð ñ)ó ð)ð ñ*ó ð*òóóò6óEôr   r   c                   ó,   — e Zd ZeZdd„Zd„ Zdd„Zd„ Zy)ÚPluginCollectionc                 ór   — | j                   j                  j                  |||«       | j                  |«      S )aC  
            Create a new plugin.

            Args:
                name (string): The name of the plugin. The ``:latest`` tag is
                    optional, and is the default if omitted.
                plugin_data_dir (string): Path to the plugin data directory.
                    Plugin data directory must contain the ``config.json``
                    manifest file and the ``rootfs`` directory.
                gzip (bool): Compress the context using gzip. Default: False

            Returns:
                (:py:class:`Plugin`): The newly created plugin.
        )r   r    Úcreate_pluginr   )r   r   Úplugin_data_dirÚgzips       r   ÚcreatezPluginCollection.create†   s,   € ð 	�‰�‰×%Ñ% d¨O¸TÔBØ�x‰x˜‹~Ðr   c                 ój   — | j                  | j                  j                  j                  |«      «      S )ah  
        Gets a plugin.

        Args:
            name (str): The name of the plugin.

        Returns:
            (:py:class:`Plugin`): The plugin.

        Raises:
            :py:class:`docker.errors.NotFound` If the plugin does not
            exist.
            :py:class:`docker.errors.APIError`
                If the server returns an error.
        )Úprepare_modelr   r    Úinspect_plugin)r   r   s     r   r   zPluginCollection.get˜   s(   € ð  ×!Ñ! $§+¡+§/¡/×"@Ñ"@ÀÓ"FÓGÐGr   Nc                 óÒ   — | j                   j                  j                  |«      }| j                   j                  j                  |||«      }|D ]  }Œ | j	                  |xs |«      S )a‚  
            Pull and install a plugin.

            Args:
                remote_name (string): Remote reference for the plugin to
                    install. The ``:latest`` tag is optional, and is the
                    default if omitted.
                local_name (string): Local name for the pulled plugin.
                    The ``:latest`` tag is optional, and is the default if
                    omitted. Optional.

            Returns:
                (:py:class:`Plugin`): The installed plugin
            Raises:
                :py:class:`docker.errors.APIError`
                    If the server returns an error.
        )r   r    r6   Úpull_pluginr   )r   Úremote_nameÚ
local_namer9   ÚitÚ_datas         r   ÚinstallzPluginCollection.installª   s^   € ð$ —[‘[—_‘_×6Ñ6°{ÓCˆ
Ø�[‰[�_‰_×(Ñ(¨°jÀ*ÓMˆØò 	ˆEØð	à�x‰x˜
Ò1 kÓ2Ð2r   c                 ó’   — | j                   j                  j                  «       }|D �cg c]  }| j                  |«      ‘Œ c}S c c}w )zð
        List plugins installed on the server.

        Returns:
            (list of :py:class:`Plugin`): The plugins.

        Raises:
            :py:class:`docker.errors.APIError`
                If the server returns an error.
        )r   r    ÚpluginsrK   )r   ÚrespÚrs      r   ÚlistzPluginCollection.listÂ   s9   € ð �{‰{�‰×&Ñ&Ó(ˆØ/3Ö4¨!�×"Ñ" 1Õ%Ò4Ð4ùÒ4s   ©Ar;   r=   )	r   r>   r?   r   ÚmodelrI   r   rS   rX   rB   r   r   rD   rD   ƒ   s   „ Ø€Eóò$Hó$3ó05r   rD   N)Ú r   Úresourcer   r   r   rD   rB   r   r   ú<module>r\      s(   ðÝ ß 'ô{ˆUô {ô|K5�zõ K5r   