Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ManifestSignature model and related serializer/filter/viewset.
re #9507 https://pulp.plan.io/issues/9507
- Loading branch information
1 parent
aa0f678
commit aac67ec
Showing
6 changed files
with
160 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added model, serializer, filter and viewset for image manifest signature. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Generated by Django 3.2.9 on 2021-11-29 13:44 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0077_move_remote_url_credentials'), | ||
('container', '0020_update_push_repo_perms'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ManifestSignature', | ||
fields=[ | ||
('content_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, related_name='container_manifestsignature', serialize=False, to='core.content')), | ||
('name', models.CharField(db_index=True, max_length=255)), | ||
('digest', models.CharField(max_length=255)), | ||
('type', models.CharField(choices=[('atomic', 'atomic')], max_length=255)), | ||
('key_id', models.CharField(db_index=True, max_length=255)), | ||
('timestamp', models.PositiveIntegerField()), | ||
('creator', models.CharField(blank=True, max_length=255)), | ||
('data', models.BinaryField()), | ||
('signed_manifest', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='signed_manifests', to='container.manifest')), | ||
], | ||
options={ | ||
'default_related_name': '%(app_label)s_%(model_name)s', | ||
'unique_together': {('digest',)}, | ||
}, | ||
bases=('core.content',), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters