Searched refs:proxy (Results 1 - 14 of 14) sorted by relevance

/pkg/src/modules/client/transport/
H A Dexception.py152 repourl=None, request=None, uuid=None, details=None, proxy=None):
164 self.proxy = proxy
192 if self.proxy:
193 s += "\nProxy: '{0}'".format(self.proxy)
221 uuid=None, proxy=None):
230 self.proxy = proxy
252 if self.proxy:
253 s += "\nProxy: '{0}'".format(self.proxy)
[all...]
H A Dstats.py57 """Gets the proxy that was used at runtime for a given
63 # we don't allow the proxy used for the system publisher to be
66 if not ds.proxy:
68 return ds.proxy
70 proxy = misc.get_runtime_proxy(ds.proxy, ds.url)
71 if not proxy:
73 return proxy
89 proxy = self.__get_proxy(ds)
90 misc.msg(dfmt.format(ds.url, proxy, d
525 def proxy(self): member in class:RepoStats
[all...]
H A Dengine.py127 repourl=None, compressible=False, failonerror=True, proxy=None,
137 'proxy' is the persistent proxy value for this url and is
140 'runtime_proxy' is the actual proxy value that is used by pycurl
147 failonerror=failonerror, proxy=proxy,
229 repostats = self.__xport.stats[(h.repourl, h.proxy)]
325 repostats = self.__xport.stats[(h.repourl, h.proxy)]
527 failonerror=True, proxy=None, runtime_proxy=None, system=False):
535 'proxy' i
[all...]
H A Drepo.py399 proxy=self._repouri.proxy)
407 proxy=self._repouri.proxy, system=system)
415 proxy=self._repouri.proxy)
426 proxy=self._repouri.proxy)
613 # have a proxy attached to their RepositoryURI, and the
1202 proxy
[all...]
H A Dtransport.py1151 proxy=repouri_key[1])
1172 proxy=repouri_key[1])
1222 proxy=repouri_key[1])
1402 proxy=repouri_key[1])
2047 # specific bookkeeping stats keyed by repouri and proxy.
2052 proxy = misc.get_runtime_proxy(None, uri)
2054 proxy=proxy)])
2062 repourl=repouri, proxy=proxy)
[all...]
/pkg/src/svc/
H A Dsvc-pkg-mirror314 uri proxy ; do
332 if [ "$proxy" = "-" ]; then
333 proxy=''
335 https_proxies[$index]=$proxy
336 http_proxies[$index]=$proxy
/pkg/src/modules/client/
H A Dpublisher.py162 trailing_slash=True, proxy=None, system=False, proxies=None,
181 # The proxy parameter is deprecated and remains for backwards
184 if proxy and proxies:
186 "'proxy' values were used to create a "
189 if proxy:
190 self.proxies = [ProxyURI(proxy)]
276 def __set_proxy(self, proxy):
277 if not proxy:
279 if not isinstance(proxy, ProxyURI):
280 p = ProxyURI(proxy)
455 proxy = property(__get_proxy, __set_proxy, None, "The proxy to use to " variable in class:RepositoryURI
696 proxy = property(lambda self: self.__proxy, __set_proxy, None, variable in class:TransportRepoURI
[all...]
H A Dimageconfig.py656 # information is limited to the proxy used for each URI.
670 "proxy": "",
674 # sys_cfg proxy values should
691 "proxy": puri,
857 # basis is which proxy (if any) is used to access it. In the
860 # {"proxy": "<uri>", "ssl_key": "<key>", "ssl_cert": "<cert>"}
878 proxy = uri_info.get("proxy")
880 # Convert a "" proxy value to None
881 if proxy
[all...]
H A Dclient_api.py456 err = "\nThe following proxy configuration is set in the " \
1702 # use the proxy we declared, if any.
1895 "proxy" : [("tsv"), _("PROXY"), ""],
2057 set_value(field_data["proxy"], "-")
2070 set_value(field_data["proxy"],
2072 [proxy.uri
2073 for proxy in uri.proxies]))
2097 set_value(field_data["proxy"], "-")
2105 set_value(field_data["proxy"],
2130 set_value(field_data["proxy"], "")
[all...]
/pkg/src/tests/api/
H A Dt_publisher.py149 # Verify that proxies and proxy are linked
151 self.assertTrue(uobj.proxy == "http://foo.com")
152 uobj.proxy = "http://bar"
159 proxy="http://foo")
164 "creating a RepositoryURI obj with proxies & proxy")
171 # we only support a single proxy per RepositoryURI
/pkg/src/tests/cli/
H A Dt_https.py70 # Our proxy is served by the same Apache controller, but uses
129 # HTTP proxy.
132 self.pkg("set-publisher --proxy {proxy} "
137 proxy=self.proxyurl))
140 # Now try to use the bad proxy, ensuring that we cannot set
142 # proxy previously)
147 self.pkg("set-publisher --proxy {proxy} "
152 proxy
[all...]
/pkg/src/util/qual-simulator/
H A Ddepot.py130 proxy = property(__get_proxy, __set_proxy, None, "Proxy of the " variable in class:RepositoryURI
142 The key is a (uri, proxy) tuple, where the proxy is
143 the proxy used to reach that URI. Note that in the transport
144 system, we may choose to override the proxy value here."""
/pkg/src/
H A Dsysrepo.py78 # clients querying the system repository, as well as providing http/https proxy
93 # cache_dir var/cache/pkg/sysrepo apache proxy cache
316 pub_info[uri] = [[prefix, cert, key, hash of the uri, proxy], ... ]
405 def _valid_proxy(proxy):
406 """Checks the given proxy string to make sure that it does not contain
410 u = urlparse(proxy)
422 [[prefix, cert, key, hash of the uri, proxy, uri type], ... ]
439 # map URIs to (pub.prefix, cert, key, hash, proxy, utype) tuples
462 # Apache can only use a single proxy, even
470 raise SysrepoException("proxy valu
[all...]
/pkg/src/modules/
H A Dmisc.py303 def valid_pub_url(url, proxy=False):
305 If 'proxy' is set to True, some checks are relaxed."""
330 if proxy:
331 # We may have authentication details in the proxy URI, which
2680 def get_runtime_proxy(proxy, uri):
2681 """Given a proxy string and a URI we want to access using it, determine
2685 was found which should apply to this URI, indicating that no proxy
2688 runtime_proxy = proxy

Completed in 299 milliseconds