Sha256: e688fa72286ae47a72bf9e60738d09038cc70adb26b28e5334672cbc3cdc97fe

Contents?: true

Size: 568 Bytes

Versions: 35

Compression:

Stored size: 568 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(:uuid => filter.send("#{singular_resource_name}_rules").pluck(:uuid))
    end

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

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
katello-3.4.2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.4.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.4.0.2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.4.0.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.3.2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.4.0 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.4.0.rc2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.4.0.rc1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.3.1.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.3.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.3.0.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.3.0 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.3.0.rc2 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.3.0.rc1.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.3.0.rc1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.2.1.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.2.1 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.2.0 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.2.0.rc3 app/controllers/katello/api/v2/docker_manifests_controller.rb
katello-3.2.0.rc2 app/controllers/katello/api/v2/docker_manifests_controller.rb