5 #ifndef CVMFS_SWISSKNIFE_SYNC_H_
6 #define CVMFS_SWISSKNIFE_SYNC_H_
125 class SimpleCatalogManager;
128 namespace swissknife {
133 virtual std::string
GetName()
const {
return "create"; }
135 return "Bootstraps a fresh repository.";
147 "VOMS authz requirement "
153 "VOMS authz requirement "
163 virtual std::string
GetName()
const {
return "upload"; }
165 return "Uploads a local file to the repository.";
181 virtual std::string
GetName()
const {
return "peek"; }
183 return "Checks whether a file exists in the repository.";
197 virtual std::string
GetName()
const {
return "remove"; }
199 return "Removes a file in the repository storage.";
214 virtual std::string
GetName()
const {
return "dirtab"; }
216 return "Parses the dirtab file and produces nested catalog markers.";
236 std::vector<std::string> *nested_catalog_candidates);
240 std::vector<std::string> *nested_catalog_candidates);
242 const std::vector<std::string> &new_nested_catalogs);
253 virtual std::string
GetName()
const {
return "sync"; }
255 return "Pushes changes from scratch area back to the repository.";
290 'J',
"tag description (only used when upstream is GW)"));
293 "compression algorithm "
296 "virtual directory options "
297 "[snapshots, remove]"));
302 "used during the publishing process"
303 " Warning: No automatic garbage collection!"));
305 "pause publishing to allow for catalog "
321 "Publish format compatible with "
322 "authenticated repos"));
344 #endif // CVMFS_SWISSKNIFE_SYNC_H_
static Parameter Optional(const char key, const std::string &desc)
virtual std::string GetName() const
static const size_t kDefaultMaxFileChunkSize
size_t avg_file_chunk_size
virtual std::string GetName() const
virtual ParameterList GetParams() const
static Parameter Switch(const char key, const std::string &desc)
int Main(const ArgumentList &args)
virtual ParameterList GetParams() const
virtual std::string GetDescription() const
static const unsigned kDefaultMaxWeight
bool generate_legacy_bulk_chunks
unsigned file_mbyte_limit
virtual std::string GetName() const
uint64_t max_concurrent_write_jobs
static const unsigned kDefaultFileMbyteLimit
std::vector< Parameter > ParameterList
virtual std::string GetDescription() const
static const unsigned kDefaultNestedKcatalogLimit
static const unsigned kDefaultRootKcatalogLimit
int Main(const ArgumentList &args)
size_t min_file_chunk_size
unsigned num_upload_tasks
virtual std::string GetDescription() const
std::string spooler_definition
std::string manifest_path
bool ReadFileChunkingArgs(const swissknife::ArgumentList &args, SyncParameters *params)
bool CheckParams(const SyncParameters &p)
virtual std::string GetName() const
zlib::Algorithms compression_alg
unsigned nested_kcatalog_limit
std::string union_fs_type
static const size_t kDefaultMinFileChunkSize
int Main(const ArgumentList &args)
virtual std::string GetDescription() const
int Main(const ArgumentList &args)
virtual std::string GetName() const
std::string base_directory
virtual std::string GetDescription() const
void FilterCandidatesFromGlobResult(const catalog::Dirtab &dirtab, char **paths, const size_t npaths, catalog::SimpleCatalogManager *catalog_manager, std::vector< std::string > *nested_catalog_candidates)
static Parameter Mandatory(const char key, const std::string &desc)
static const unsigned kDefaultMinWeight
upload::Spooler * spooler
virtual std::string GetName() const
int Main(const ArgumentList &args)
bool ignore_special_files
virtual ParameterList GetParams() const
virtual ParameterList GetParams() const
int Main(const ArgumentList &args)
bool stop_for_catalog_tweaks
unsigned root_kcatalog_limit
size_t max_file_chunk_size
std::string session_token_file
std::map< char, SharedPtr< std::string > > ArgumentList
static const size_t kDefaultAvgFileChunkSize
virtual std::string GetDescription() const
void DetermineNestedCatalogCandidates(const catalog::Dirtab &dirtab, catalog::SimpleCatalogManager *catalog_manager, std::vector< std::string > *nested_catalog_candidates)
bool ignore_xdir_hardlinks
virtual ParameterList GetParams() const
bool CreateCatalogMarkers(const std::vector< std::string > &new_nested_catalogs)
virtual ParameterList GetParams() const