Class: Types::ContainerRegistry::ContainerRepositoryDetailsType
- Inherits:
-
ContainerRepositoryType
- Object
- GraphQL::Schema::Object
- BaseObject
- ContainerRepositoryType
- Types::ContainerRegistry::ContainerRepositoryDetailsType
- Defined in:
- app/graphql/types/container_registry/container_repository_details_type.rb
Overview
rubocop:disable Graphql/AuthorizeTypes – authorization is inherited from the parent: ContainerRepositoryType
Constant Summary
Constants included from Gitlab::Graphql::Authorize::AuthorizeResource
Gitlab::Graphql::Authorize::AuthorizeResource::ConfigurationError, Gitlab::Graphql::Authorize::AuthorizeResource::RESOURCE_ACCESS_ERROR
Constants inherited from ContainerRepositoryType
Types::ContainerRegistry::ContainerRepositoryType::PROTECTION_RULE_EXISTS_BATCH_SIZE
Instance Method Summary collapse
Methods included from Gitlab::Graphql::Authorize::AuthorizeResource
#authorize!, #authorized_find!, #authorized_resource?, #find_object, #raise_resource_not_available_error!
Methods inherited from ContainerRepositoryType
#migration_state, #project, #protection_rule_exists, #tags_count
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#last_published_at ⇒ Object
46 47 48 |
# File 'app/graphql/types/container_registry/container_repository_details_type.rb', line 46 def last_published_at handling_errors { object.last_published_at } end |
#manifest(reference:) ⇒ Object
50 51 52 53 54 55 |
# File 'app/graphql/types/container_registry/container_repository_details_type.rb', line 50 def manifest(reference:) handling_errors do manifest = object.image_manifest(reference) manifest.as_json if manifest end end |
#size ⇒ Object
42 43 44 |
# File 'app/graphql/types/container_registry/container_repository_details_type.rb', line 42 def size handling_errors { object.size } end |