Sha256: afd1e46522979e9470d0ef2deedddf6b08a91e4be6a8e86bf5e129ddf2bfa78f

Contents?: true

Size: 645 Bytes

Versions: 169

Compression:

Stored size: 645 Bytes

Contents

module Katello
  class Api::V2::DockerManifestsController < Api::V2::ApiController
    apipie_concern_subst(:a_resource => N_("a docker manifest"), :resource => "docker_manifests")
    include Katello::Concerns::Api::V2::RepositoryContentController

    private

    def resource_class
      DockerManifest
    end

    def filter_by_content_view_filter(filter)
      resource_class.where(:pulp_id => filter.send("#{singular_resource_name}_rules").pluck(:uuid))
    end

    def custom_index_relation(collection)
      collection.includes(:docker_tags)
    end

    def default_sort
      lambda { |query| query.default_sort }
    end
  end
end

Version data entries

169 entries across 169 versions & 1 rubygems

Version Path
katello-3.12.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.11.2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.12.0 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.12.0.rc2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.12.0.rc1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.11.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.11.0 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.11.0.rc2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.11.0.rc1 app/controllers/katello/api/v2/docker_manifests_controller.rb