Files
docker-stacks/tagging/apps/config.py
2025-03-05 02:01:07 +00:00

23 lines
524 B
Python

# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from dataclasses import dataclass
from pathlib import Path
@dataclass(frozen=True)
class Config:
registry: str = ""
owner: str = ""
image: str = ""
variant: str = ""
platform: str = ""
tags_dir: Path = Path()
hist_lines_dir: Path = Path()
manifests_dir: Path = Path()
repository: str = ""
def full_image(self) -> str:
return f"{self.registry}/{self.owner}/{self.image}"