Ë
    9àiÆ  ã                   ó&   — d dl mZ  G d„ de«      Zy)é   )Úformat_environmentc                   ór   — e Zd ZdZed„ «       Zed„ «       Zed„ «       Zed„ «       Ze	d„ «       Z
d„ Zd„ Zd	„ Zy
)ÚProxyConfigz/
    Hold the client's proxy configuration
    c                 ó$   — | j                  d«      S )NÚhttp©Úget©Úselfs    úS/home/factor_ks/STREAMA2026/venv/lib/python3.12/site-packages/docker/utils/proxy.pyr   zProxyConfig.http   s   € à�x‰x˜ÓÐó    c                 ó$   — | j                  d«      S )NÚhttpsr   r
   s    r   r   zProxyConfig.https   s   € à�x‰x˜Ó Ð r   c                 ó$   — | j                  d«      S )NÚftpr   r
   s    r   r   zProxyConfig.ftp   s   € à�x‰x˜‹Ðr   c                 ó$   — | j                  d«      S )NÚno_proxyr   r
   s    r   r   zProxyConfig.no_proxy   s   € à�x‰x˜
Ó#Ð#r   c                 ó˜   — t        | j                  d«      | j                  d«      | j                  d«      | j                  d«      ¬«      S )a  
        Instantiate a new ProxyConfig from a dictionary that represents a
        client configuration, as described in `the documentation`_.

        .. _the documentation:
            https://docs.docker.com/network/proxy/#configure-the-docker-client
        Ú	httpProxyÚ
httpsProxyÚftpProxyÚnoProxy©r   r   r   r   )r   r	   )Úconfigs    r   Ú	from_dictzProxyConfig.from_dict   sA   € ô Ø—‘˜KÓ(Ø—*‘*˜\Ó*Ø—
‘
˜:Ó&Ø—Z‘Z 	Ó*ô	
ð 	
r   c                 ó
  — i }| j                   r| j                   x|d<   |d<   | j                  r| j                  x|d<   |d<   | j                  r| j                  x|d<   |d<   | j                  r| j                  x|d<   |d<   |S )	zt
        Return a dictionary representing the environment variables used to
        set the proxy settings.
        Ú
http_proxyÚ
HTTP_PROXYÚhttps_proxyÚHTTPS_PROXYÚ	ftp_proxyÚ	FTP_PROXYr   ÚNO_PROXYr   )r   Úenvs     r   Úget_environmentzProxyConfig.get_environment(   sˆ   € ð
 ˆØ�9Š9Ø48·I±IÐ=ˆC�Ñ  LÑ 1Ø�:Š:Ø6:·j±jÐ@ˆC�Ñ  ]Ñ!3Ø�8Š8Ø26·(±(Ð:ˆC�Ñ˜s ;Ñ/Ø�=Š=Ø04·±Ð=ˆC�
‰O˜c *™oØˆ
r   c                 óN   — | s|S t        | j                  «       «      }|s|S ||z   S )zœ
        Given a list of strings representing environment variables, prepend the
        environment variables corresponding to the proxy settings.
        )r   r%   )r   ÚenvironmentÚ	proxy_envs      r   Úinject_proxy_environmentz$ProxyConfig.inject_proxy_environment8   s6   € ñ
 ØÐä& t×';Ñ';Ó'=Ó>ˆ	ÙØÐð ˜;Ñ&Ð&r   c           	      óp   — d| j                   › d| j                  › d| j                  › d| j                  › d�	S )NzProxyConfig(http=z, https=z, ftp=z, no_proxy=ú)r   r
   s    r   Ú__str__zProxyConfig.__str__G   s?   € ðØ—I‘I�;˜h t§z¡z lð 3Ø—8‘8�*˜K¨¯© Øðð	
r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úpropertyr   r   r   r   Ústaticmethodr   r%   r)   r,   © r   r   r   r      sz   „ ñð ñ ó ð ð ñ!ó ð!ð ñó ðð ñ$ó ð$ð ñ
ó ð
òò 'ó
r   r   N)Úutilsr   Údictr   r3   r   r   ú<module>r6      s   ðÝ %ôI
�$õ I
r   