Files
opencloud/services/storage-users/pkg/revaconfig/user.go
André Duffeck b51cae14ba Onle enable fs-watching for the storageprovider, not the dataprovider
We need to make sure that the storageprovider tree is used for watching
the fs and not the dataprovider, because the dataprovider doesn't have a
mount_id set which is needed to emit proper events.
2024-06-25 08:40:50 +02:00

36 lines
1.0 KiB
Go

package revaconfig
import "github.com/owncloud/ocis/v2/services/storage-users/pkg/config"
// StorageProviderDrivers are the drivers for the storage provider
func StorageProviderDrivers(cfg *config.Config) map[string]interface{} {
return map[string]interface{}{
"eos": EOS(cfg),
"eoshome": EOSHome(cfg),
"eosgrpc": EOSGRPC(cfg),
"local": Local(cfg),
"localhome": LocalHome(cfg),
"owncloudsql": OwnCloudSQL(cfg),
"ocis": OcisNoEvents(cfg),
"s3": S3(cfg),
"s3ng": S3NGNoEvents(cfg),
"posix": Posix(cfg, true),
}
}
// DataProviderDrivers are the drivers for the storage provider
func DataProviderDrivers(cfg *config.Config) map[string]interface{} {
return map[string]interface{}{
"eos": EOS(cfg),
"eoshome": EOSHome(cfg),
"eosgrpc": EOSGRPC(cfg),
"local": Local(cfg),
"localhome": LocalHome(cfg),
"owncloudsql": OwnCloudSQL(cfg),
"ocis": Ocis(cfg),
"s3": S3(cfg),
"s3ng": S3NG(cfg),
"posix": Posix(cfg, false),
}
}