1
0
mirror of https://github.com/quay/quay.git synced 2026-01-27 18:42:52 +03:00
Files
quay/data/appr_model/models.py
2019-12-02 12:23:08 -05:00

48 lines
920 B
Python

from collections import namedtuple
from data.database import (
ApprTag,
ApprTagKind,
ApprBlobPlacementLocation,
ApprManifestList,
ApprManifestBlob,
ApprBlob,
ApprManifestListManifest,
ApprManifest,
ApprBlobPlacement,
ApprChannel,
)
ModelsRef = namedtuple(
"ModelsRef",
[
"Tag",
"TagKind",
"BlobPlacementLocation",
"ManifestList",
"ManifestBlob",
"Blob",
"ManifestListManifest",
"Manifest",
"BlobPlacement",
"Channel",
"manifestlistmanifest_set_name",
"tag_set_prefetch_name",
],
)
NEW_MODELS = ModelsRef(
ApprTag,
ApprTagKind,
ApprBlobPlacementLocation,
ApprManifestList,
ApprManifestBlob,
ApprBlob,
ApprManifestListManifest,
ApprManifest,
ApprBlobPlacement,
ApprChannel,
"apprmanifestlistmanifest_set",
"apprtag_set",
)