Welcome to mirror list, hosted at ThFree Co, Russian Federation.

tag_signature.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e75fd04109a1dd015e52cc1577076662ec272a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module API
  module Entities
    class TagSignature < Grape::Entity
      expose :signature_type, documentation: { type: 'string', example: 'PGP' }

      expose :signature, merge: true do |tag|
        ::API::Entities::X509Signature.represent tag.signature if tag.signature_type == :X509
      end
    end
  end
end