util/repomirror/skopeomirror.py
def tags(
        self,
        repository,
        rule_value,
        username=None,
        password=None,
        tls_verify=True,
        proxy=None,
        verbose_logs=False,
    ):
        """
        Unless a specific tag is known, 'skopeo inspect' won't work.

        Here first 'latest' is checked and then the tag expression, split at commas, is each checked
        until one works.
        """

        args = ["/usr/bin/skopeo"]
        if verbose_logs:
            args = args + ["--debug"]
        args = args + ["inspect", "--tls-verify=%s" % tls_verify]
        args = args + self.external_registry_credentials("--creds", username, password)

        if not rule_value:
            rule_value = []

        all_tags = []
        for tag in rule_value + ["latest"]:
            result = self.run_skopeo(args + [quote("%s:%s" % (repository, tag))], proxy)

            if result.success:
                all_tags = json.loads(result.stdout)["RepoTags"]
                if all_tags is not []:
                    break

        return SkopeoResults(result.success, all_tags, result.stdout, result.stderr)

        Unless a specific tag is known, 'skopeo inspect' won't work.

        Here first 'latest' is checked and then the tag expression, split at commas, is each checked
        until one works.
        
Unless a specific tag is known, 'skopeo inspect' won't work.
Here first 'latest' is checked and then the tag expression, split at commas, is each checked
until one works.
Unless a specific tag is known ' skopeo inspect ' won ' t work . Here first ' latest ' is checked and then the tag expression split at commas is each checked until one works .
def tags(
        self,
        repository,
        rule_value,
        username=None,
        password=None,
        tls_verify=True,
        proxy=None,
        verbose_logs=False,
    ):
        args = ["/usr/bin/skopeo"]
        if verbose_logs:
            args = args + ["--debug"]
        args = args + ["inspect", "--tls-verify=%s" % tls_verify]
        args = args + self.external_registry_credentials("--creds", username, password)
        if not rule_value:
            rule_value = []
        all_tags = []
        for tag in rule_value + ["latest"]:
            result = self.run_skopeo(args + [quote("%s:%s" % (repository, tag))], proxy)
            if result.success:
                all_tags = json.loads(result.stdout)["RepoTags"]
                if all_tags is not []:
                    break
        return SkopeoResults(result.success, all_tags, result.stdout, result.stderr)
def tags ( self , repository , rule_value , username = None , password = None , tls_verify = True , proxy = None , verbose_logs = False , ) : args = [ "/usr/bin/skopeo" ] if verbose_logs : args = args + [ "--debug" ] args = args + [ "inspect" , "--tls-verify=%s" % tls_verify ] args = args + self . external_registry_credentials ( "--creds" , username , password ) if not rule_value : rule_value = [ ] all_tags = [ ] for tag in rule_value + [ "latest" ] : result = self . run_skopeo ( args + [ quote ( "%s:%s" % ( repository , tag ) ) ] , proxy ) if result . success : all_tags = json . loads ( result . stdout ) [ "RepoTags" ] if all_tags is not [ ] : break return SkopeoResults ( result . success , all_tags , result . stdout , result . stderr )
Unless a specific tag is known, 'skopeo inspect' won't work.
Unless a specific tag is known ' skopeo inspect ' won ' t work .
"""
        Unless a specific tag is known, 'skopeo inspect' won't work.

        Here first 'latest' is checked and then the tag expression, split at commas, is each checked
        until one works.
        """
self
repository
rule_value
username
password
tls_verify
proxy
verbose_logs