CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
upload_spooler_result.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_UPLOAD_SPOOLER_RESULT_H_
6 #define CVMFS_UPLOAD_SPOOLER_RESULT_H_
7 
8 #include <string>
9 
11 #include "file_chunk.h"
12 
13 namespace upload {
14 
23 struct SpoolerResult {
24  explicit SpoolerResult(
25  const int return_code = -1,
26  const std::string &local_path = "",
27  const shash::Any &digest = shash::Any(),
35 
36  inline bool IsChunked() const { return !file_chunks.IsEmpty(); }
37 
39  std::string local_path;
40 
46 };
47 
48 } // namespace upload
49 
50 #endif // CVMFS_UPLOAD_SPOOLER_RESULT_H_
int return_code
the return value of the spooler operation
FileChunkList file_chunks
the file chunks generated during processing
Algorithms
Definition: compression.h:44
BigVector< FileChunk > FileChunkList
Definition: file_chunk.h:51
std::string local_path
the local_path previously given as input
zlib::Algorithms compression_alg
unsigned char digest[20]
bool IsEmpty() const
Definition: bigvector.h:72
SpoolerResult(const int return_code=-1, const std::string &local_path="", const shash::Any &digest=shash::Any(), const FileChunkList &file_chunks=FileChunkList(), const zlib::Algorithms compression_alg=zlib::kZlibDefault)