CernVM-FS  2.9.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 
10 #include "compression.h"
11 #include "file_chunk.h"
12 
13 namespace upload {
14 
23 struct SpoolerResult {
24  SpoolerResult(const int return_code = -1,
25  const std::string &local_path = "",
26  const shash::Any &digest = shash::Any(),
34 
35  inline bool IsChunked() const { return !file_chunks.IsEmpty(); }
36 
38  std::string local_path;
39 
45 };
46 
47 } // namespace upload
48 
49 #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:67
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)