First few changes for the image diffs feature.
This commit is contained in:
parent
b22a4aa24c
commit
93b856bdb3
9 changed files with 189 additions and 2 deletions
|
@ -360,6 +360,21 @@ def list_repository_images(namespace, repository):
|
|||
abort(403)
|
||||
|
||||
|
||||
@app.route('/api/repository/<path:repository>/image/<image_id>/changes',
|
||||
methods=['GET'])
|
||||
@parse_repository_name
|
||||
def get_repository_changes(namespace, repository, image_id):
|
||||
permission = ReadRepositoryPermission(namespace, repository)
|
||||
if permission.can() or model.repository_is_public(namespace, repository):
|
||||
return jsonify({
|
||||
'added': [],
|
||||
'changed': [],
|
||||
'removed': []
|
||||
})
|
||||
|
||||
abort(403)
|
||||
|
||||
|
||||
@app.route('/api/repository/<path:repository>/tag/<tag>/images',
|
||||
methods=['GET'])
|
||||
@parse_repository_name
|
||||
|
|
|
@ -312,3 +312,9 @@ def delete_repository_storage(namespace, repository):
|
|||
|
||||
logger.debug('Recursively deleting path: %s' % repository_path)
|
||||
store.remove(repository_path)
|
||||
|
||||
|
||||
def process_image_changes(namespace, repository, image_id):
|
||||
return
|
||||
image = model.get_image_by_id(namespace, repository, image_id)
|
||||
model.get_parent_images()
|
Reference in a new issue