Project

Profile

Help

Story #3408

closed

Model Manifest List Content

Added by bizhang about 6 years ago. Updated over 4 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
Yes
Tags:
Sprint:
Sprint 42
Quarter:

Description

A ManifestList object should subclass Content and contain the following additional fields:

  • digest: CharField(255)
  • schema_version: IntegerField()
  • manifests: ManyToManyField('Manifest', through='ManifestListManifest')
  • mediaType: application/vnd.docker.distribution.manifest.list.v2+json
  • amd64_digest: CharField(255)
  • amd64_schema_version: IntegerField()

ManifestListManifest is the thru table for ManifestList to Manifest relationship. Some fields on this model appears to be redundant to the fields found on the Manifest Model, but they are necessary because the provided json for a Manfiest List is not guaranteed to match the reality of a manifest.

  • ForeignKey to Manifest
  • ForeignKey to ManifestList
  • mediaType: ChoiceField()
  • size: IntegerField()
  • platform: ForeignKey to Platform

MediaType choice for the Manifest:

  • application/vnd.docker.distribution.manifest.v1+json
  • application/vnd.docker.distribution.manifest.v2+json

Platform (does not subclass ContentUnit):

  • architecture: CharField(255)
  • os: CharField(255)
  • os.version: charField(255)
  • os.features: ListField(CharField())
  • variant: CharField(255)
  • features: ListField(CharField())

Also available in: Atom PDF