def fq_name(self): def propagate(_img): if self.remote: self.registry, self.repo, self.image, self.tag, self.digest = Decompose(_img).all if self._fq_name: return self._fq_name if self.fully_qualified: img = self.registry if self.repo: img += "/{}".format(self.repo) if self.tag: img += "/{}:{}".format(self.image, self.tag) elif self.digest: img += "/{}@{}".format(self.image, self.digest) self._fq_name = img propagate(self._fq_name) return img if not self.registry: ri = RegistryInspect(registry=self.registry, repo=self.repo, image=self.image, tag=self.tag, digest=self.digest, orig_input=self.input_name) self._fq_name = ri.find_image_on_registry(quiet=True) propagate(self._fq_name) return self._fq_name
def fq_name(self): def propagate(_img): if self.remote: self.registry, self.repo, self.image, self.tag, _ = Decompose(_img).all if self._fq_name: return self._fq_name if self.backend.backend == 'ostree': self._fq_name = self.input_name return self._fq_name if self.fully_qualified: img = self.registry if self.repo: img += "/{}".format(self.repo) img += "/{}:{}".format(self.image, self.tag) self._fq_name = img propagate(self._fq_name) return img if not self.registry: ri = RegistryInspect(registry=self.registry, repo=self.repo, image=self.image, tag=self.tag, orig_input=self.input_name) self._fq_name = ri.find_image_on_registry() propagate(self._fq_name) return self._fq_name
def fq_name(self): def propagate(_img): if self.remote: self.registry, self.repo, self.image, self.tag, self.digest = Decompose( _img).all if self._fq_name: return self._fq_name if self.fully_qualified: img = self.registry if self.repo: img += "/{}".format(self.repo) if self.tag: img += "/{}:{}".format(self.image, self.tag) elif self.digest: img += "/{}@{}".format(self.image, self.digest) self._fq_name = img propagate(self._fq_name) return img if not self.registry: ri = RegistryInspect(registry=self.registry, repo=self.repo, image=self.image, tag=self.tag, digest=self.digest, orig_input=self.input_name) self._fq_name = ri.find_image_on_registry(quiet=True) propagate(self._fq_name) return self._fq_name
def fq_name(self): def propagate(_img): if self.remote: self.registry, self.repo, self.image, self.tag, _ = Decompose( _img).all if self._fq_name: return self._fq_name if self.backend.backend == 'ostree': self._fq_name = self.input_name return self._fq_name if self.fully_qualified: img = self.registry if self.repo: img += "/{}".format(self.repo) img += "/{}:{}".format(self.image, self.tag) self._fq_name = img propagate(self._fq_name) return img if not self.registry: ri = RegistryInspect(registry=self.registry, repo=self.repo, image=self.image, tag=self.tag, orig_input=self.input_name) self._fq_name = ri.find_image_on_registry() propagate(self._fq_name) return self._fq_name