@ -22,6 +22,8 @@ type RemoteGatewayOptions struct {
timeAgo*time.Duration
timeAgo*time.Duration
createBucketAt*string
createBucketAt*string
createBucketRandomSuffix*bool
createBucketRandomSuffix*bool
include*string
exclude*string
mappings*remote_pb.RemoteStorageMapping
mappings*remote_pb.RemoteStorageMapping
remoteConfsmap[string]*remote_pb.RemoteConf
remoteConfsmap[string]*remote_pb.RemoteConf
@ -50,6 +52,8 @@ func init() {
remoteGatewayOptions.createBucketRandomSuffix=cmdFilerRemoteGateway.Flag.Bool("createBucketWithRandomSuffix",true,"add randomized suffix to bucket name to avoid conflicts")
remoteGatewayOptions.createBucketRandomSuffix=cmdFilerRemoteGateway.Flag.Bool("createBucketWithRandomSuffix",true,"add randomized suffix to bucket name to avoid conflicts")
remoteGatewayOptions.readChunkFromFiler=cmdFilerRemoteGateway.Flag.Bool("filerProxy",false,"read file chunks from filer instead of volume servers")
remoteGatewayOptions.readChunkFromFiler=cmdFilerRemoteGateway.Flag.Bool("filerProxy",false,"read file chunks from filer instead of volume servers")
remoteGatewayOptions.timeAgo=cmdFilerRemoteGateway.Flag.Duration("timeAgo",0,"start time before now. \"300ms\", \"1.5h\" or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\"")
remoteGatewayOptions.timeAgo=cmdFilerRemoteGateway.Flag.Duration("timeAgo",0,"start time before now. \"300ms\", \"1.5h\" or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\"")
remoteGatewayOptions.include=cmdFilerRemoteGateway.Flag.String("include","","pattens of new bucket names, e.g., s3*")
remoteGatewayOptions.exclude=cmdFilerRemoteGateway.Flag.String("exclude","","pattens of new bucket names, e.g., local*")