debian-mirror-gitlab/app/graphql/types/container_repository_details_type.rb

22 lines
550 B
Ruby
Raw Normal View History

2021-01-29 00:20:46 +05:30
# frozen_string_literal: true
module Types
class ContainerRepositoryDetailsType < Types::ContainerRepositoryType
graphql_name 'ContainerRepositoryDetails'
description 'Details of a container repository'
authorize :read_container_image
field :tags,
Types::ContainerRepositoryTagType.connection_type,
null: true,
2021-03-11 19:13:27 +05:30
description: 'Tags of the container repository.',
2021-01-29 00:20:46 +05:30
max_page_size: 20
def can_delete
Ability.allowed?(current_user, :destroy_container_image, object)
end
end
end