Skip to content

Commit

Permalink
add new usershareprovidersvc (cs3org#108)
Browse files Browse the repository at this point in the history
* usershareprovidersvc: add new sharing
  • Loading branch information
labkode authored Jun 5, 2019
1 parent 3d05965 commit 270d757
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 7 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- dependabot[bot] <dependabot[bot]@users.noreply.github.com>
- dependabot-preview[bot] <dependabot-preview[bot]@users.noreply.github.com>
- Hugo Gonzalez Labrador <[email protected]>
- Hugo Labrador <[email protected]>
- Jörn Friedrich Dreyer <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions cmd/revad/svcs/grpcsvcs/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Original file line number Diff line number Diff line change
@@ -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
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand All @@ -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=
Expand Down Expand Up @@ -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=
Expand Down

0 comments on commit 270d757

Please sign in to comment.