Files
OpenLLM/typings/docker/utils/proxy.pyi
Aaron Pham c7f4dc7bb2 feat(test): snapshot testing (#107)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-10 17:23:19 -04:00

33 lines
1.1 KiB
Python
Generated

"""This type stub file was generated by pyright."""
class ProxyConfig(dict):
"""Hold the client's proxy configuration."""
@property
def http(self): ...
@property
def https(self): ...
@property
def ftp(self): ...
@property
def no_proxy(self): ...
@staticmethod
def from_dict(config): # -> ProxyConfig:
"""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
"""
...
def get_environment(self): # -> dict[Unknown, Unknown]:
"""Return a dictionary representing the environment variables used to
set the proxy settings.
"""
...
def inject_proxy_environment(self, environment): # -> list[Unknown | str]:
"""Given a list of strings representing environment variables, prepend the
environment variables corresponding to the proxy settings.
"""
...