Files
opencloud/storage/pkg/flagset/driverlocal.go
Jörn Friedrich Dreyer 8eb0864c93 Clarify storage driver env vars
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2020-10-23 22:48:02 +02:00

20 lines
502 B
Go

package flagset
import (
"github.com/micro/cli/v2"
"github.com/owncloud/ocis/storage/pkg/config"
)
// DriverLocalWithConfig applies cfg to the root flagset
func DriverLocalWithConfig(cfg *config.Config) []cli.Flag {
return []cli.Flag{
&cli.StringFlag{
Name: "storage-local-root",
Value: "/var/tmp/ocis/local",
Usage: "the path to the local storage root",
EnvVars: []string{"STORAGE_DRIVER_LOCAL_ROOT"},
Destination: &cfg.Reva.Storages.Local.Root,
},
}
}