From 03d18687b308f0ec9e84b82a02f8a0ee3f97389f Mon Sep 17 00:00:00 2001 From: Michiel de Jong Date: Tue, 21 Sep 2021 16:47:53 +0200 Subject: [PATCH] hound --- pkg/share/manager/nextcloud/nextcloud.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/share/manager/nextcloud/nextcloud.go b/pkg/share/manager/nextcloud/nextcloud.go index 6d5f3dc9285..3b1de3d1e57 100644 --- a/pkg/share/manager/nextcloud/nextcloud.go +++ b/pkg/share/manager/nextcloud/nextcloud.go @@ -61,12 +61,14 @@ type Action struct { argS string } +// GranteeAltMap is an alternative map 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 type GranteeAltMap struct { ID *provider.Grantee_UserId `json:"id"` } +// ShareAltMap is an alternative map to JSON-unmarshal a Share type ShareAltMap struct { ID *collaboration.ShareId `json:"id"` ResourceID *provider.ResourceId `json:"resource_id"` @@ -78,6 +80,7 @@ type ShareAltMap struct { Mtime *types.Timestamp `json:"mtime"` } +// ReceivedShareAltMap is an alternative map to JSON-unmarshal a ReceivedShare type ReceivedShareAltMap struct { Share *ShareAltMap `json:"share"` State collaboration.ShareState `json:"state"`