f.redis_password=cmdFiler.Flag.String("redis.password","","password in clear text")
f.redis_password=cmdFiler.Flag.String("redis.password","","password in clear text")
f.redis_database=cmdFiler.Flag.Int("redis.database",0,"the database on the redis server")
f.redis_database=cmdFiler.Flag.Int("redis.database",0,"the database on the redis server")
f.secretKey=cmdFiler.Flag.String("secure.secret","","secret to encrypt Json Web Token(JWT)")
f.secretKey=cmdFiler.Flag.String("secure.secret","","secret to encrypt Json Web Token(JWT)")
f.get_ip_whitelist_option=cmdFiler.Flag.String("whitelist.ip.get","","comma separated Ip addresses having get permission. No limit if empty.")
f.get_root_whitelist_option=cmdFiler.Flag.String("whitelist.root.get","","comma separated root paths having get permission. No limit if empty.")
f.head_ip_whitelist_option=cmdFiler.Flag.String("whitelist.ip.head","","comma separated Ip addresses having head permission. No limit if empty.")
f.head_root_whitelist_option=cmdFiler.Flag.String("whitelist.root.head","","comma separated root paths having head permission. No limit if empty.")
f.delete_ip_whitelist_option=cmdFiler.Flag.String("whitelist.ip.delete","","comma separated Ip addresses having delete permission. No limit if empty.")
f.delete_root_whitelist_option=cmdFiler.Flag.String("whitelist.root.delete","","comma separated root paths having delete permission. No limit if empty.")
f.put_ip_whitelist_option=cmdFiler.Flag.String("whitelist.ip.put","","comma separated Ip addresses having put permission. No limit if empty.")
f.put_root_whitelist_option=cmdFiler.Flag.String("whitelist.root.put","","comma separated root paths having put permission. No limit if empty.")
f.post_ip_whitelist_option=cmdFiler.Flag.String("whitelist.ip.post","","comma separated Ip addresses having post permission. No limit if empty.")
f.post_root_whitelist_option=cmdFiler.Flag.String("whitelist.root.post","","comma separated root paths having post permission. No limit if empty.")
f.get_secure_key=cmdFiler.Flag.String("secure.secret.get","","secret to encrypt Json Web Token(JWT)")
f.head_secure_key=cmdFiler.Flag.String("secure.secret.head","","secret to encrypt Json Web Token(JWT)")
f.delete_secure_key=cmdFiler.Flag.String("secure.secret.delete","","secret to encrypt Json Web Token(JWT)")
f.put_secure_key=cmdFiler.Flag.String("secure.secret.put","","secret to encrypt Json Web Token(JWT)")
f.post_secure_key=cmdFiler.Flag.String("secure.secret.post","","secret to encrypt Json Web Token(JWT)")
isStartingFiler=cmdServer.Flag.Bool("filer",false,"whether to start filer")
isStartingFiler=cmdServer.Flag.Bool("filer",false,"whether to start filer")
serverWhiteList[]string
serverReadWhiteList[]string
serverWriteWhiteList[]string
)
)
funcinit(){
funcinit(){
@ -82,7 +84,7 @@ func init() {
filerOptions.master=cmdServer.Flag.String("filer.master","","default to current master server")
filerOptions.master=cmdServer.Flag.String("filer.master","","default to current master server")
filerOptions.collection=cmdServer.Flag.String("filer.collection","","all data will be stored in this collection")
filerOptions.collection=cmdServer.Flag.String("filer.collection","","all data will be stored in this collection")
filerOptions.port=cmdServer.Flag.Int("filer.port",8888,"filer server http listen port")
filerOptions.port=cmdServer.Flag.Int("filer.port",8888,"filer server http listen port")
filerOptions.dir=cmdServer.Flag.String("filer.dir","","directory to store meta data, default to a 'filer' sub directory of what -dir is specified")
filerOptions.dir=cmdServer.Flag.String("filer.dir","","directory to store meta data, default to a 'filer' sub directory of what -mdir is specified")
filerOptions.defaultReplicaPlacement=cmdServer.Flag.String("filer.defaultReplicaPlacement","","Default replication type if not specified during runtime.")
filerOptions.defaultReplicaPlacement=cmdServer.Flag.String("filer.defaultReplicaPlacement","","Default replication type if not specified during runtime.")
filerOptions.redirectOnRead=cmdServer.Flag.Bool("filer.redirectOnRead",false,"whether proxy or redirect to volume server during file GET request")
filerOptions.redirectOnRead=cmdServer.Flag.Bool("filer.redirectOnRead",false,"whether proxy or redirect to volume server during file GET request")
filerOptions.disableDirListing=cmdServer.Flag.Bool("filer.disableDirListing",false,"turn off directory listing")
filerOptions.disableDirListing=cmdServer.Flag.Bool("filer.disableDirListing",false,"turn off directory listing")
@ -92,6 +94,21 @@ func init() {
filerOptions.redis_server=cmdServer.Flag.String("filer.redis.server","","host:port of the redis server, e.g., 127.0.0.1:6379")
filerOptions.redis_server=cmdServer.Flag.String("filer.redis.server","","host:port of the redis server, e.g., 127.0.0.1:6379")
filerOptions.redis_password=cmdServer.Flag.String("filer.redis.password","","redis password in clear text")
filerOptions.redis_password=cmdServer.Flag.String("filer.redis.password","","redis password in clear text")
filerOptions.redis_database=cmdServer.Flag.Int("filer.redis.database",0,"the database on the redis server")
filerOptions.redis_database=cmdServer.Flag.Int("filer.redis.database",0,"the database on the redis server")
filerOptions.get_ip_whitelist_option=cmdServer.Flag.String("filer.whitelist.ip.get","","comma separated Ip addresses having filer GET permission. No limit if empty.")
filerOptions.get_root_whitelist_option=cmdServer.Flag.String("filer.whitelist.root.get","","comma separated root paths having filer GET permission. No limit if empty.")
filerOptions.head_ip_whitelist_option=cmdServer.Flag.String("filer.whitelist.ip.head","","comma separated Ip addresses having filer HEAD permission. No limit if empty.")
filerOptions.head_root_whitelist_option=cmdServer.Flag.String("filer.whitelist.root.head","","comma separated root paths having filer HEAD permission. No limit if empty.")
filerOptions.delete_ip_whitelist_option=cmdServer.Flag.String("filer.whitelist.ip.delete","","comma separated Ip addresses having filer DELETE permission. No limit if empty.")
filerOptions.delete_root_whitelist_option=cmdServer.Flag.String("filer.whitelist.root.delete","","comma separated root paths having filer DELETE permission. No limit if empty.")
filerOptions.put_ip_whitelist_option=cmdServer.Flag.String("filer.whitelist.ip.put","","comma separated Ip addresses having filer PUT permission. No limit if empty.")
filerOptions.put_root_whitelist_option=cmdServer.Flag.String("filer.whitelist.root.put","","comma separated root paths having filer PUT permission. No limit if empty.")
filerOptions.post_ip_whitelist_option=cmdServer.Flag.String("filer.whitelist.ip.post","","comma separated Ip addresses having filer POST permission. No limit if empty.")
filerOptions.post_root_whitelist_option=cmdServer.Flag.String("filer.whitelist.root.post","","comma separated root paths having filer POST permission. No limit if empty.")
filerOptions.get_secure_key=cmdServer.Flag.String("filer.secure.secret.get","","secret to encrypt Json Web Token(JWT)")
filerOptions.head_secure_key=cmdServer.Flag.String("filer.secure.secret.head","","secret to encrypt Json Web Token(JWT)")
filerOptions.delete_secure_key=cmdServer.Flag.String("filer.secure.secret.delete","","secret to encrypt Json Web Token(JWT)")
filerOptions.put_secure_key=cmdServer.Flag.String("filer.secure.secret.put","","secret to encrypt Json Web Token(JWT)")
filerOptions.post_secure_key=cmdServer.Flag.String("filer.secure.secret.post","","secret to encrypt Json Web Token(JWT)")