mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-25 17:08:32 +00:00
22 lines
456 B
Ruby
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
|