Skip to content

Commit 0c0a322

Browse files
authoredNov 4, 2024··
Merge pull request #4906 from 2403905/issue-10306-bump-go-cs3apis
bump go-cs3apis
2 parents a77c4df + c6966e7 commit 0c0a322

File tree

6 files changed

+165
-22
lines changed

6 files changed

+165
-22
lines changed
 

‎changelog/unreleased/bump-cs3-api.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Enhancement: Bump cs3api
2+
3+
https://github.com/cs3org/reva/pull/4906

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ require (
1818
github.com/cheggaaa/pb v1.0.29
1919
github.com/coreos/go-oidc/v3 v3.11.0
2020
github.com/cs3org/cato v0.0.0-20200828125504-e418fc54dd5e
21-
github.com/cs3org/go-cs3apis v0.0.0-20240724121416-062c4e3046cb
21+
github.com/cs3org/go-cs3apis v0.0.0-20240927085705-d50e291cbf4c
2222
github.com/dgraph-io/ristretto v0.2.0
2323
github.com/emvi/iso-639-1 v1.1.0
2424
github.com/eventials/go-tus v0.0.0-20220610120217-05d0564bb571

‎go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t
152152
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
153153
github.com/cs3org/cato v0.0.0-20200828125504-e418fc54dd5e h1:tqSPWQeueWTKnJVMJffz4pz0o1WuQxJ28+5x5JgaHD8=
154154
github.com/cs3org/cato v0.0.0-20200828125504-e418fc54dd5e/go.mod h1:XJEZ3/EQuI3BXTp/6DUzFr850vlxq11I6satRtz0YQ4=
155-
github.com/cs3org/go-cs3apis v0.0.0-20240724121416-062c4e3046cb h1:KmYZDReplv/yfwc1LNYpDcVhVujC3Pasv6WjXx1haSU=
156-
github.com/cs3org/go-cs3apis v0.0.0-20240724121416-062c4e3046cb/go.mod h1:yyP8PRo0EZou3nSH7H4qjlzQwaydPeIRNgX50npQHpE=
155+
github.com/cs3org/go-cs3apis v0.0.0-20240927085705-d50e291cbf4c h1:91oR7NL5bBvwHj00a/1aTePzOBheIjeNGqBWzG6try0=
156+
github.com/cs3org/go-cs3apis v0.0.0-20240927085705-d50e291cbf4c/go.mod h1:DedpcqXl193qF/08Y04IO0PpxyyMu8+GrkD6kWK2MEQ=
157157
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
158158
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
159159
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

‎internal/grpc/services/gateway/publicshareprovider.go

+6
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@ package gateway
2121
import (
2222
"context"
2323

24+
gateway "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
2425
rpc "github.com/cs3org/go-cs3apis/cs3/rpc/v1beta1"
2526
link "github.com/cs3org/go-cs3apis/cs3/sharing/link/v1beta1"
2627
"github.com/cs3org/reva/v2/pkg/appctx"
28+
"github.com/cs3org/reva/v2/pkg/errtypes"
2729
"github.com/cs3org/reva/v2/pkg/rgrpc/todo/pool"
2830
"github.com/pkg/errors"
2931
)
@@ -107,6 +109,10 @@ func (s *svc) ListPublicShares(ctx context.Context, req *link.ListPublicSharesRe
107109
return res, nil
108110
}
109111

112+
func (s *svc) ListExistingPublicShares(_ context.Context, _ *link.ListPublicSharesRequest) (*gateway.ListExistingPublicSharesResponse, error) {
113+
return nil, errtypes.NotSupported("method ListExistingPublicShares not implemented")
114+
}
115+
110116
func (s *svc) UpdatePublicShare(ctx context.Context, req *link.UpdatePublicShareRequest) (*link.UpdatePublicShareResponse, error) {
111117
log := appctx.GetLogger(ctx)
112118
log.Info().Msg("update public share")

‎internal/grpc/services/gateway/usershareprovider.go

+4
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ func (s *svc) ListShares(ctx context.Context, req *collaboration.ListSharesReque
107107
return res, nil
108108
}
109109

110+
func (s *svc) ListExistingShares(_ context.Context, _ *collaboration.ListSharesRequest) (*gateway.ListExistingSharesResponse, error) {
111+
return nil, errtypes.NotSupported("method ListExistingShares not implemented")
112+
}
113+
110114
func (s *svc) updateShare(ctx context.Context, req *collaboration.UpdateShareRequest) (*collaboration.UpdateShareResponse, error) {
111115
// TODO: update wopi server
112116
// FIXME This is a workaround that should prevent removing or changing the share permissions when the file is locked.

‎tests/cs3mocks/mocks/GatewayAPIClient.go

+149-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.