mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-10-20 13:24:38 -04:00
Merge pull request #295 from owncloud/feature/public-shares
Public Shares
This commit is contained in:
4 files changed
+492
-14
No files matched your search
@@ -20,6 +20,7 @@ require (
|
||||
github.com/micro/cli/v2 v2.1.2-0.20200203150404-894195727d9c
|
||||
github.com/micro/go-micro/v2 v2.0.1-0.20200212105717-d76baf59de2e
|
||||
github.com/micro/micro/v2 v2.0.1-0.20200210100719-f38a1d8d5348
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
|
||||
github.com/nsf/termbox-go v0.0.0-20200418040025-38ba6e5628f1 // indirect
|
||||
github.com/openzipkin/zipkin-go v0.2.2
|
||||
github.com/owncloud/flaex v0.2.0
|
||||
@@ -34,7 +35,7 @@ require (
|
||||
github.com/owncloud/ocis-phoenix v0.7.0
|
||||
github.com/owncloud/ocis-pkg/v2 v2.2.1
|
||||
github.com/owncloud/ocis-proxy v0.3.1
|
||||
github.com/owncloud/ocis-reva v0.3.0
|
||||
github.com/owncloud/ocis-reva v0.4.0
|
||||
github.com/owncloud/ocis-thumbnails v0.1.2
|
||||
github.com/owncloud/ocis-webdav v0.1.0
|
||||
github.com/restic/calens v0.2.0
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"github.com/micro/cli/v2"
|
||||
"github.com/owncloud/ocis-reva/pkg/command"
|
||||
svcconfig "github.com/owncloud/ocis-reva/pkg/config"
|
||||
"github.com/owncloud/ocis-reva/pkg/flagset"
|
||||
"github.com/owncloud/ocis/pkg/config"
|
||||
"github.com/owncloud/ocis/pkg/register"
|
||||
)
|
||||
|
||||
// RevaPublicLinkStorage is the entry point for the proxy command.
|
||||
func RevaPublicLinkStorage(cfg *config.Config) *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "reva-storage-public-link",
|
||||
Usage: "Start public link storage driver",
|
||||
Category: "Extensions",
|
||||
Flags: flagset.StoragePublicLink(cfg.Reva),
|
||||
Action: func(ctx *cli.Context) error {
|
||||
publicStorageCmd := command.StoragePublicLink(configurePublicStorage(cfg))
|
||||
return cli.HandleAction(publicStorageCmd.Action, ctx)
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func configurePublicStorage(cfg *config.Config) *svcconfig.Config {
|
||||
cfg.Reva.Log.Level = cfg.Log.Level
|
||||
cfg.Reva.Log.Pretty = cfg.Log.Pretty
|
||||
cfg.Reva.Log.Color = cfg.Log.Color
|
||||
|
||||
return cfg.Reva
|
||||
}
|
||||
|
||||
func init() {
|
||||
register.AddCommand(RevaPublicLinkStorage)
|
||||
}
|
||||
@@ -42,8 +42,9 @@ var (
|
||||
"reva-auth-basic",
|
||||
"reva-auth-bearer",
|
||||
"reva-sharing",
|
||||
//"reva-storage-root",
|
||||
// "reva-storage-root",
|
||||
"reva-storage-home",
|
||||
"reva-storage-public-link",
|
||||
"reva-storage-home-data",
|
||||
"reva-storage-eos",
|
||||
"reva-storage-eos-data",
|
||||
|
||||
Reference in new issue
Block a user