Enable s3 and gcs data storage

This commit is contained in:
Tobie Morgan Hitchcock 2018-05-02 12:28:40 +01:00
parent 9983d2aa84
commit 82991db7eb

View file

@ -58,7 +58,7 @@ func setup() {
}
if opts.DB.Path != "memory" {
if ok, _ := regexp.MatchString(`^(logr|file|mysql|dendrodb)://(.+)$`, opts.DB.Path); !ok {
if ok, _ := regexp.MatchString(`^(s3|gcs|logr|file|mysql|dendrodb)://(.+)$`, opts.DB.Path); !ok {
log.Fatalf("Invalid path %s. Specify a valid data store configuration path", opts.DB.Path)
}
}