Files
gitlabhq/lib/gitlab/cleanup/object_storage_cleaner_mapping.rb
2025-05-23 12:07:23 +00:00

22 lines
456 B
Ruby

# frozen_string_literal: true
module Gitlab
module Cleanup
module ObjectStorageCleanerMapping
# Maps buckets to their respective model classes and cleaners
MAPPING = {
artifacts: ::Gitlab::Cleanup::RemoteArtifacts,
uploads: ::Gitlab::Cleanup::RemoteUploads
}.freeze
def self.buckets
MAPPING.keys
end
def self.cleaner_class_for(bucket)
MAPPING[bucket]
end
end
end
end