5 #ifndef CVMFS_UPLOAD_LOCAL_H_
6 #define CVMFS_UPLOAD_LOCAL_H_
21 const std::string &tmp_path)
47 virtual std::string
name()
const {
return "Local"; }
58 void DoUpload(
const std::string &remote_path,
70 bool Peek(
const std::string &path);
72 bool Mkdir(
const std::string &path);
85 int Move(
const std::string &local_path,
const std::string &remote_path)
const;
97 #endif // CVMFS_UPLOAD_LOCAL_H_
const std::string upstream_path_
LocalUploader(const SpoolerDefinition &spooler_definition)
UploadStreamHandle * InitStreamedUpload(const CallbackTN *callback)
bool Peek(const std::string &path)
const std::string temporary_path_
const SpoolerDefinition & spooler_definition() const
void StreamedUpload(UploadStreamHandle *handle, UploadBuffer buffer, const CallbackTN *callback=NULL)
void FinalizeStreamedUpload(UploadStreamHandle *handle, const shash::Any &content_hash)
virtual std::string name() const
static const mode_t default_backend_file_mode_
LocalStreamHandle(const CallbackTN *commit_callback, const int tmp_fd, const std::string &tmp_path)
const CallbackTN * commit_callback
unsigned int GetNumberOfErrors() const
int Move(const std::string &local_path, const std::string &remote_path) const
bool Mkdir(const std::string &path)
static const mode_t default_backend_dir_mode_
const int file_descriptor
const std::string temporary_path
const mode_t backend_file_mode_
int64_t DoGetObjectSize(const std::string &file_name)
bool PlaceBootstrappingShortcut(const shash::Any &object)
AbstractUploader::CallbackTN CallbackTN
void DoRemoveAsync(const std::string &file_to_delete)
void DoUpload(const std::string &remote_path, IngestionSource *source, const CallbackTN *callback)
const mode_t backend_dir_mode_
atomic_int32 copy_errors_
CallbackBase< UploaderResults > CallbackTN
static bool WillHandle(const SpoolerDefinition &spooler_definition)