045d07bab3
This includes a set of APIs to manipulate container registry. This includes also an ability to delete tags based on requested criteria, like keep-last-n, matching-name, older-than.
29 lines
552 B
Ruby
29 lines
552 B
Ruby
# frozen_string_literal: true
|
|
|
|
module API
|
|
module Entities
|
|
module ContainerRegistry
|
|
class Repository < Grape::Entity
|
|
expose :id
|
|
expose :name
|
|
expose :path
|
|
expose :location
|
|
expose :created_at
|
|
end
|
|
|
|
class Tag < Grape::Entity
|
|
expose :name
|
|
expose :path
|
|
expose :location
|
|
end
|
|
|
|
class TagDetails < Tag
|
|
expose :revision
|
|
expose :short_revision
|
|
expose :digest
|
|
expose :created_at
|
|
expose :total_size
|
|
end
|
|
end
|
|
end
|
|
end
|