5 #ifndef CVMFS_PUBLISH_CMD_MKFS_H_
6 #define CVMFS_PUBLISH_CMD_MKFS_H_
16 virtual std::string
GetName()
const {
return "mkfs"; }
18 return "Create a new, empty repository";
23 "stratum0",
'w',
"stratum0 url",
24 "HTTP endpoint of the authoritative storage if not localhost"));
27 "storage",
'u',
"upstream storage",
28 "Upstream storage definition if other than local file system"));
31 "owner",
'o',
"user name",
32 "User account that should own the published files"));
36 "Enable to mark the repository as source for stratum 1 copies"));
40 "Enforce aufs or overlayfs if both are available"));
43 "s3config",
's',
"s3 config file",
44 "Settings for an S3 bucket, use with -w and -u flags"));
48 "Disable automatic creation of timestamp tags, useful with --gc"));
51 "autotag-span",
'G',
"timespan",
52 "Specify a `date` compatible time windows for keeping auto tags"));
55 "Select a secure hash algorithm: sha1 "
56 "(default) or rmd160 or shake128"));
59 "Make the repository garbage-collectable"));
63 "Mark the repository contents as volatile for client caches"));
66 "compression",
'Z',
"algorithm",
67 "Select the compression algorithm: zlib (default) or none"));
71 "Use existing keys instead of creating new ones"));
74 "Write repository keychain to directory "
75 "different from /etc/cvmfs/keys"));
79 "Disable creation of Apache config files, e.g. for S3 backend"));
83 "Only create repository but do not configure node as a publisher"));
87 "Require a master key card for the whitelist signature"));
90 "auth",
'V',
"auth spec",
91 "Set the membership requirement to access the repository"));
94 "external",
'X',
"Enable to use this repository for external data"));
98 return "[options] <fully qualified repository name>";
102 virtual int Main(
const Options &options);
107 #endif // CVMFS_PUBLISH_CMD_MKFS_H_
virtual std::string GetName() const
static Parameter Optional(const std::string &key, char short_key, const std::string &arg_name, const std::string &desc)
virtual unsigned GetMinPlainArgs() const
virtual int Main(const Options &options)
static Parameter Switch(const std::string &key, char short_key, const std::string &desc)
virtual std::string GetBrief() const
std::vector< Parameter > ParameterList
virtual std::string GetUsage() const
virtual ParameterList GetParams() const