Lines Matching refs:up
39 up = urlparse(url)
41 if up.scheme == 'file':
42 return self.load_index_file(up, url, load)
44 if up.scheme == 'http' or up.scheme == 'https':
45 return self.load_index_web(up, url, load)
50 def load_index_file(self, up, url, load): argument
58 if not os.path.exists(up.path):
59 raise FileNotFoundError(up.path)
67 params = self.layerindex._parse_params(up.params)
72 index.config['DESCRIPTION'] = up.path
119 if not os.path.isdir(up.path):
120 load_cache(up.path, index, branches)
123 logger.debug('Loading from dir %s...' % (up.path))
124 for (dirpath, _, filenames) in os.walk(up.path):
134 def load_index_web(self, up, url, load): argument
149 up = urlparse(apiurl)
151 username=up.username
152 password=up.password
155 if up.port:
156 up_stripped = up._replace(params="", netloc="%s:%s" % (up.hostname, up.port))
158 up_stripped = up._replace(params="", netloc=up.hostname)
180 params = self.layerindex._parse_params(up.params)
185 index.config['DESCRIPTION'] = up.hostname
197 … index.apilinks = _get_json_response(apiurl=url, username=up.username, password=up.password)
214 username=up.username, password=up.password)
226 username=up.username, password=up.password)
242 username=up.username, password=up.password)
263 username=up.username, password=up.password)
281 up = urlparse(url)
283 if up.scheme != 'file':
286 logger.debug("Storing to %s..." % up.path)
314 if not os.path.isdir(up.path):
343 bb.debug(1, 'Writing index to %s' % up.path)
344 with open(up.path, 'wt') as f:
388 fpath = os.path.join(up.path, fname)