package
1.29.0
Repository: https://github.com/cs3org/reva.git
Documentation: pkg.go.dev

# Functions

GetNextcloudServerMock returns a handler that pretends to be a remote Nextcloud server.
New returns a share manager implementation that verifies against a Nextcloud backend.
NewShareManager returns a new Nextcloud-based ShareManager.
TestingHTTPClient thanks to https://itnext.io/how-to-stub-requests-to-remote-hosts-with-go-6c2c1db32bf2 Ideally, this function would live in tests/helpers, but if we put it there, it gets excluded by .dockerignore, and the Docker build fails (see https://github.com/cs3org/reva/issues/1999) So putting it here for now - open to suggestions if someone knows a better way to inject this.

# Structs

Action describes a REST request to forward to the Nextcloud backend.
EfssGrantee is a helper struct to JSON-unmarshal a Grantee Grantees are hard to unmarshal, so unmarshalling into a map[string]interface{} first, see also https://github.com/pondersource/sciencemesh-nextcloud/issues/27.
EfssShare is a representation of a federated share as exchanged with the EFSS.
Manager is the Nextcloud-based implementation of the share.Repository interface see https://github.com/cs3org/reva/blob/v1.13.0/pkg/ocm/share/share.go#L30-L57.
ReceivedEfssShare is a representation of a received federated share as exchanged with the EFSS.
Response contains data for the Nextcloud mock server to respond and to switch to a new server state.
ShareManagerConfig contains config for a Nextcloud-based ShareManager.