Пример #1
0
func main() {
	runtime.GOMAXPROCS(runtime.NumCPU())

	// Use a custom remote storage if set in the environment
	// Use S3 as the default remote storage
	switch strings.ToLower(os.Getenv("REMOTE_STORAGE")) {
	case "minio":
		strata.RunCLI(lrminiodriver.DriverFactory{Ops: &lrminiodriver.Options{}})
	case "local":
		strata.RunCLI(lrldriver.DriverFactory{Ops: &lrldriver.Options{}})
	default:
		strata.RunCLI(lrs3driver.DriverFactory{Ops: &lrs3driver.Options{}})
	}
}
Пример #2
0
func main() {
	runtime.GOMAXPROCS(runtime.NumCPU())
	strata.RunCLI(lrossdriver.DriverFactory{Ops: &lrossdriver.Options{}})
}