summaryrefslogtreecommitdiff
path: root/lib/api/entities/container_registry.rb
blob: 00833ca74800e3146f26ce857f6efa3a214fa0a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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