Fix config variable naming

This commit is contained in:
Benedikt Kulmann
2020-10-05 12:24:27 +02:00
parent 9c64f6a0b5
commit 60a3f3cc6e
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -218,11 +218,11 @@ func (r CS3Repo) authenticate(ctx context.Context) (token string, err error) {
}
func (r CS3Repo) accountURL(id string) string {
return singleJoiningSlash(r.cfg.Repo.CS3.DriverURL, path.Join(r.cfg.Repo.CS3.DataPrefix, accountsFolder, id))
return singleJoiningSlash(r.cfg.Repo.CS3.DataURL, path.Join(r.cfg.Repo.CS3.DataPrefix, accountsFolder, id))
}
func (r CS3Repo) groupURL(id string) string {
return singleJoiningSlash(r.cfg.Repo.CS3.DriverURL, path.Join(r.cfg.Repo.CS3.DataPrefix, groupsFolder, id))
return singleJoiningSlash(r.cfg.Repo.CS3.DataURL, path.Join(r.cfg.Repo.CS3.DataPrefix, groupsFolder, id))
}
func (r CS3Repo) makeRootDirIfNotExist(ctx context.Context, folder string) error {
+1 -1
View File
@@ -17,7 +17,7 @@ package storage
// Repo: config.Repo{
// CS3: config.CS3{
// ProviderAddr: "0.0.0.0:9215",
// DriverURL: "http://localhost:9216",
// DataURL: "http://localhost:9216",
// DataPrefix: "data",
// },
// },
+1 -1
View File
@@ -3,12 +3,12 @@ package storage
import (
"context"
"encoding/json"
"github.com/owncloud/ocis/accounts/pkg/config"
"io/ioutil"
"os"
"path/filepath"
"sync"
"github.com/owncloud/ocis/accounts/pkg/config"
"github.com/owncloud/ocis/accounts/pkg/proto/v0"
olog "github.com/owncloud/ocis/ocis-pkg/log"
)