diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 9f6dfcf0ac..914f1ed7a5 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,4 +1,5 @@ - dependabot[bot] +- dependabot-preview[bot] - Hugo Gonzalez Labrador - Hugo Labrador - Jörn Friedrich Dreyer diff --git a/cmd/revad/svcs/grpcsvcs/loader/loader.go b/cmd/revad/svcs/grpcsvcs/loader/loader.go index d6b831ed95..f3c86b5b17 100644 --- a/cmd/revad/svcs/grpcsvcs/loader/loader.go +++ b/cmd/revad/svcs/grpcsvcs/loader/loader.go @@ -26,5 +26,6 @@ import ( _ "github.com/cs3org/reva/cmd/revad/svcs/grpcsvcs/preferencessvc" _ "github.com/cs3org/reva/cmd/revad/svcs/grpcsvcs/storageprovidersvc" _ "github.com/cs3org/reva/cmd/revad/svcs/grpcsvcs/storageregistrysvc" + _ "github.com/cs3org/reva/cmd/revad/svcs/grpcsvcs/usershareprovidersvc" // Add your own service here ) diff --git a/cmd/revad/svcs/grpcsvcs/usershareprovidersvc/usershareprovidersvc.go b/cmd/revad/svcs/grpcsvcs/usershareprovidersvc/usershareprovidersvc.go new file mode 100644 index 0000000000..96f6eedf66 --- /dev/null +++ b/cmd/revad/svcs/grpcsvcs/usershareprovidersvc/usershareprovidersvc.go @@ -0,0 +1,44 @@ +// Copyright 2018-2019 CERN +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// +// In applying this license, CERN does not waive the privileges and immunities +// granted to it by virtue of its status as an Intergovernmental Organization +// or submit itself to any jurisdiction. + +package usershareprovidersvc + +import ( + "io" + + usershareproviderv0alpha "github.com/cs3org/go-cs3apis/cs3/usershareprovider/v0alpha" + "github.com/cs3org/reva/cmd/revad/grpcserver" + "google.golang.org/grpc" +) + +func init() { + grpcserver.Register("usershareprovidersvc", New) +} + +type service struct { + *usershareproviderv0alpha.UnimplementedUserShareProviderServiceServer +} + +func (s *service) Close() error { return nil } + +// New creates a new storage provider svc +func New(m map[string]interface{}, ss *grpc.Server) (io.Closer, error) { + service := &service{&usershareproviderv0alpha.UnimplementedUserShareProviderServiceServer{}} + usershareproviderv0alpha.RegisterUserShareProviderServiceServer(ss, service) + return service, nil +} diff --git a/go.mod b/go.mod index 29b114d92f..4ed8ac2763 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ require ( github.com/aws/aws-sdk-go v1.19.42 github.com/cheggaaa/pb v1.0.28 github.com/coreos/go-oidc v2.0.0+incompatible - github.com/cs3org/go-cs3apis v0.0.0-20190527130632-f252d85e4bd6 + github.com/cs3org/go-cs3apis v0.0.0-20190605075643-d637d4d6d08e github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/fatih/color v1.7.0 // indirect github.com/go-sql-driver/mysql v1.4.1 diff --git a/go.sum b/go.sum index 4df02976cd..60de3946d7 100644 --- a/go.sum +++ b/go.sum @@ -3,8 +3,6 @@ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= -github.com/aws/aws-sdk-go v1.19.27 h1:pQQ0gJoxZaFwikVRKrR8NoyMY3quqObDNwaD5g2nSBw= -github.com/aws/aws-sdk-go v1.19.27/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/aws/aws-sdk-go v1.19.42 h1:HxUVd+4MxOildxsh4D3fu5ajfpEVcxnjT9oi5cxMOUI= github.com/aws/aws-sdk-go v1.19.42/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973 h1:xJ4a3vCFaGF/jqvzLMYoU8P317H5OQ+Via4RmuPwCS0= @@ -15,8 +13,8 @@ github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDk github.com/coreos/go-oidc v2.0.0+incompatible h1:+RStIopZ8wooMx+Vs5Bt8zMXxV1ABl5LbakNExNmZIg= github.com/coreos/go-oidc v2.0.0+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/cs3org/go-cs3apis v0.0.0-20190527130632-f252d85e4bd6 h1:cdDN7itEe1aCGo9/Ug/QDl5YapP6T4Yl/WgU0nOgXwM= -github.com/cs3org/go-cs3apis v0.0.0-20190527130632-f252d85e4bd6/go.mod h1:/hIF1ICnhTBo0yrw/m56Ag1hHfmR9bK8rhFyVqWOCHI= +github.com/cs3org/go-cs3apis v0.0.0-20190605075643-d637d4d6d08e h1:xH8oy4hZOkWgo5dF6klKk1YTGCUw+SB7T1/W6o0tI8Q= +github.com/cs3org/go-cs3apis v0.0.0-20190605075643-d637d4d6d08e/go.mod h1:rw9YcRp+3DtWMCKDKhjopFvpJcXE9rTCd7qxAm5FPIo= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= @@ -132,8 +130,6 @@ google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoA google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107 h1:xtNn7qFlagY2mQNFHMSRPjT2RkOV4OXM7P5TVy9xATo= google.golang.org/genproto v0.0.0-20190404172233-64821d5d2107/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= -google.golang.org/grpc v1.20.1 h1:Hz2g2wirWK7H0qIIhGIqRGTuMwTE8HEKFnDZZ7lm9NU= -google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.0 h1:G+97AoqBnmZIT91cLG/EkCoK9NSelj64P8bOHHNmGn0= google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= google.golang.org/grpc v1.21.1 h1:j6XxA85m/6txkUCHvzlV5f+HBNl/1r5cZ2A/3IEFOO8=