Class: SupplyChain::AttestationUploader

Inherits:
GitlabUploader
  • Object
show all
Includes:
ObjectStorage::Concern
Defined in:
app/uploaders/supply_chain/attestation_uploader.rb

Constant Summary

Constants inherited from GitlabUploader

GitlabUploader::ObjectNotReadyError, GitlabUploader::PROTECTED_METHODS

Class Method Summary collapse

Instance Method Summary collapse

Methods included from ObjectStorage::Concern

#cache!, #delete_migrated_file, #delete_tmp_file_after_storage, #direct_download_enabled?, #exclusive_lease_key, #exists?, #file_cache_storage?, #file_storage?, #filename, #filename=, #fog_attributes, #fog_credentials, #fog_directory, #fog_public, #migrate!, #object_store, #object_store=, #persist_object_store!, #persist_object_store?, #proxy_download_enabled?, #retrieve_from_store!, #store!, #store_dirs, #store_path, #upload_paths, #use_file, #use_open_file

Methods included from Gitlab::Utils::Override

#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!

Methods inherited from GitlabUploader

absolute_path, base_dir, #cache_dir, #cached_size, #check_remote_file_existence_on_upload?, #empty_size?, #exists?, #file_cache_storage?, file_storage?, #filename, #initialize, #local_url, #model_valid?, #move_to_cache, #move_to_store, #multi_read, #open, #options, options, #relative_path, #replace_file_without_saving!, root, storage_location, #sync_model_object_store?, #url_or_file_path, version, #work_dir

Constructor Details

This class inherits a constructor from GitlabUploader

Class Method Details

.default_storeObject



22
23
24
# File 'app/uploaders/supply_chain/attestation_uploader.rb', line 22

def default_store
  object_store_enabled? ? ObjectStorage::Store::REMOTE : ObjectStorage::Store::LOCAL
end

.direct_upload_enabled?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'app/uploaders/supply_chain/attestation_uploader.rb', line 18

def direct_upload_enabled?
  false
end

Instance Method Details

#store_dirObject



7
8
9
# File 'app/uploaders/supply_chain/attestation_uploader.rb', line 7

def store_dir
  dynamic_segment
end