Class: Katello::ContentViewDockerFilter
- Inherits:
-
ContentViewFilter
- Object
- ApplicationRecord
- Model
- ContentViewFilter
- Katello::ContentViewDockerFilter
- Defined in:
- app/models/katello/content_view_docker_filter.rb
Constant Summary collapse
- CONTENT_TYPE =
'docker'.freeze
Constants inherited from ContentViewFilter
Katello::ContentViewFilter::CONTENT_OPTIONS, Katello::ContentViewFilter::CONTENT_TYPES, Katello::ContentViewFilter::DEB, Katello::ContentViewFilter::DOCKER, Katello::ContentViewFilter::ERRATA, Katello::ContentViewFilter::MODULE_STREAM, Katello::ContentViewFilter::PACKAGE_GROUP, Katello::ContentViewFilter::RPM
Instance Method Summary collapse
- #content_unit_pulp_ids(repo) ⇒ Object
-
#generate_clauses(repo) ⇒ Array
Returns a set of Pulp/MongoDB conditions to filter out manifests in the repo repository that match parameters.
Methods inherited from ContentViewFilter
applicable, #applicable_repos, #as_json, class_for, #content_type, create_for, deb, docker, errata, #filter_type, module_stream, #original_module_streams=, #original_packages=, #params_format, #resulting_products, rule_class_for, rule_ids_for, #validate_content_view, #validate_filter_repos, yum
Methods inherited from Model
Instance Method Details
#content_unit_pulp_ids(repo) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'app/models/katello/content_view_docker_filter.rb', line 24 def content_unit_pulp_ids(repo) = [] self.docker_rules.each do |rule| .concat(query_manifests(repo, rule)) end .sort end |
#generate_clauses(repo) ⇒ Array
Returns a set of Pulp/MongoDB conditions to filter out manifests in the repo repository that match parameters
14 15 16 17 18 19 20 21 22 |
# File 'app/models/katello/content_view_docker_filter.rb', line 14 def generate_clauses(repo) = [] self.docker_rules.each do |rule| .concat(query_manifests(repo, rule)) end { "_id" => { "$in" => } } unless .empty? end |