File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/docker/utils/__pycache__/proxy.cpython-310.pyc
Back
o �h� � @ s d dl mZ G dd� de�ZdS )� )�format_environmentc @ sd e Zd ZdZedd� �Zedd� �Zedd� �Zedd � �Ze d d� �Z dd � Zdd� Zdd� Z dS )�ProxyConfigz/ Hold the client's proxy configuration c C � | � d�S )N�http��get��self� r �H/usr/local/CyberPanel/lib/python3.10/site-packages/docker/utils/proxy.pyr � zProxyConfig.httpc C r )N�httpsr r r r r r r zProxyConfig.httpsc C r )N�ftpr r r r r r r zProxyConfig.ftpc C r )N�no_proxyr r r r r r r zProxyConfig.no_proxyc C s( t | �d�| �d�| �d�| �d�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 )�configr r r � from_dict s �zProxyConfig.from_dictc C sh i }| j r| j |d<