From 55c4682823b5df86c75a007d4f68dcf98aba66e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Thu, 28 Apr 2022 14:13:16 +0000 Subject: [PATCH] add storageproviderids to config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jörn Friedrich Dreyer --- extensions/gateway/pkg/command/command.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/gateway/pkg/command/command.go b/extensions/gateway/pkg/command/command.go index 3c8a15941f..af5bb5e836 100644 --- a/extensions/gateway/pkg/command/command.go +++ b/extensions/gateway/pkg/command/command.go @@ -10,6 +10,7 @@ import ( "strings" "github.com/cs3org/reva/v2/cmd/revad/runtime" + "github.com/cs3org/reva/v2/pkg/utils" "github.com/gofrs/uuid" "github.com/mitchellh/mapstructure" "github.com/oklog/run" @@ -223,6 +224,7 @@ func spacesProviders(cfg *config.Config, logger log.Logger) map[string]map[strin // generate rules based on default config return map[string]map[string]interface{}{ cfg.StorageUsersEndpoint: { + "providerid": "1284d238-aa92-42ce-bdc4-0b0000009157", "spaces": map[string]interface{}{ "personal": map[string]interface{}{ "mount_point": "/users", @@ -235,6 +237,7 @@ func spacesProviders(cfg *config.Config, logger log.Logger) map[string]map[strin }, }, cfg.StorageSharesEndpoint: { + "providerid": utils.ShareStorageProviderID, "spaces": map[string]interface{}{ "virtual": map[string]interface{}{ // The root of the share jail is mounted here @@ -254,6 +257,7 @@ func spacesProviders(cfg *config.Config, logger log.Logger) map[string]map[strin }, // public link storage returns the mount id of the actual storage cfg.StoragePublicLinkEndpoint: { + "providerid": utils.PublicStorageProviderID, "spaces": map[string]interface{}{ "grant": map[string]interface{}{ "mount_point": ".",