cli.contributing.mirror package¶
Subpackages¶
Submodules¶
cli.contributing.mirror.model module¶
- class cli.contributing.mirror.model.ImageRef(role: str, service: str, name: str, version: str, source: str, registry: str = 'docker.io', source_file: str = 'meta/services.yml')¶
Bases:
objectRole-declared container image reference.
- Fields:
role: e.g.
svc-db-postgresservice: e.g.postgresname: canonical image name without registry, e.g.postgis/postgisversion: e.g.17-3.5source: full pull ref, e.g.docker.io/library/postgres:16registry: source registry hostname, e.g.docker.io,quay.iosource_file: file the ref was read from, role-relative for a roleimage and repository-relative for a
runnerimage
- name: str¶
- registry: str = 'docker.io'¶
- role: str¶
- service: str¶
- source: str¶
- source_file: str = 'meta/services.yml'¶
- version: str¶
cli.contributing.mirror.providers module¶
- class cli.contributing.mirror.providers.GHCRProvider(namespace: str, repository: str, prefix: str = 'mirror')¶
Bases:
RegistryProvider- classmethod add_args(parser: argparse.ArgumentParser) None¶
Register –ghcr-namespace, –ghcr-repository, –ghcr-prefix on parser.
- classmethod from_args(args: argparse.Namespace) GHCRProvider¶
Construct a GHCRProvider from parsed CLI args.
- class cli.contributing.mirror.providers.GiteaProvider(registry: str, namespace: str, prefix: str = 'mirror')¶
Bases:
RegistryProvider