Documentation
¶
Index ¶
- func AddReadOnly(c echo.Context) error
- func AddRecipients(c echo.Context) error
- func AddRecipientsDelegated(c echo.Context) error
- func AnswerSharing(c echo.Context) error
- func BulkDocs(c echo.Context) error
- func ChangeCozyAddress(c echo.Context) error
- func ClearAppInURL(cozyURL string) string
- func CountNewShortcuts(c echo.Context) error
- func CreateSharing(c echo.Context) error
- func DowngradeToReadOnly(c echo.Context) error
- func EndInitial(c echo.Context) error
- func FileHandler(c echo.Context) error
- func GetAvatar(c echo.Context) error
- func GetDiscovery(c echo.Context) error
- func GetFolder(c echo.Context) error
- func GetPreviewURL(c echo.Context) error
- func GetSharing(c echo.Context) error
- func GetSharingsInfoByDocType(c echo.Context) error
- func PostDiscovery(c echo.Context) error
- func PutRecipients(c echo.Context) error
- func PutSharing(c echo.Context) error
- func ReceivePublicKey(c echo.Context) error
- func RemoveReadOnly(c echo.Context) error
- func ReuploadHandler(c echo.Context) error
- func RevocationOwnerNotif(c echo.Context) error
- func RevocationRecipientNotif(c echo.Context) error
- func RevokeRecipient(c echo.Context) error
- func RevokeRecipientBySelf(c echo.Context) error
- func RevokeSharing(c echo.Context) error
- func RevsDiff(c echo.Context) error
- func Routes(router *echo.Group)
- func SyncFile(c echo.Context) error
- func UpgradeToReadWrite(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddReadOnly ¶
AddReadOnly is used to downgrade a read-write member to read-only
func AddRecipients ¶
AddRecipients is used to add a member to a sharing
func AddRecipientsDelegated ¶
AddRecipientsDelegated is used to add a member to a sharing on the owner's cozy when it's the recipient's cozy that sends the mail invitation.
func AnswerSharing ¶
AnswerSharing is used to exchange credentials between 2 cozys, after the recipient has accepted a sharing.
func ChangeCozyAddress ¶
ChangeCozyAddress is called when a Cozy has been moved to a new address.
func ClearAppInURL ¶
ClearAppInURL will remove the app slug from the URL of a Cozy. Example: https://john-drive.mycozy.cloud/ -> https://john.mycozy.cloud/
func CountNewShortcuts ¶
CountNewShortcuts returns the number of shortcuts to a sharing that have not been seen.
func CreateSharing ¶
CreateSharing initializes a new sharing (on the sharer)
func DowngradeToReadOnly ¶
DowngradeToReadOnly is used to receive the credentials for pushing last changes on an instance of a recipient before going to read-only mode
func EndInitial ¶
EndInitial is used for ending the initial sync phase of a sharing
func FileHandler ¶
FileHandler is used to receive a file upload
func GetDiscovery ¶
GetDiscovery displays a form where a recipient can give the address of their cozy instance
func GetPreviewURL ¶
GetPreviewURL returns the preview URL for the member identified by their state parameter.
func GetSharing ¶
GetSharing returns the sharing document associated to the given sharingID and which documents have been shared. The requester must have the permission on at least one doctype declared in the sharing document.
func GetSharingsInfoByDocType ¶
GetSharingsInfoByDocType returns, for a given doctype, all the sharing information, i.e. the involved sharings and the shared documents
func PostDiscovery ¶
PostDiscovery is called when the recipient has given its Cozy URL. Either an error is returned or the recipient will be redirected to their cozy.
Note: we don't have an anti-CSRF system, we rely on shareCode being secret.
func PutRecipients ¶
PutRecipients is used to update the members list on the recipients cozy
func PutSharing ¶
PutSharing creates a sharing request (on the recipient's cozy)
func ReceivePublicKey ¶
ReceivePublicKey is used to receive the public key of a sharing member. It can be used when the member has delegated authentication, and didn't have a password when they accepted the sharing: this route is called when the user choose a password a bit later in cozy pass web.
func RemoveReadOnly ¶
RemoveReadOnly is used to give read-write to a member that had the read-only flag
func ReuploadHandler ¶
ReuploadHandler is used to try sending again files
func RevocationOwnerNotif ¶
RevocationOwnerNotif is used to inform the owner that a recipient has revoked himself/herself from the sharing
func RevocationRecipientNotif ¶
RevocationRecipientNotif is used to inform a recipient that the sharing is revoked
func RevokeRecipient ¶
RevokeRecipient is used by the owner to revoke a recipient
func RevokeRecipientBySelf ¶
RevokeRecipientBySelf is used by a recipient to revoke himself/herself from the sharing
func RevokeSharing ¶
RevokeSharing is used to revoke a sharing by the sharer, for all recipients
func SyncFile ¶
SyncFile will try to synchronize a file from just its metadata. If it's not possible, it will respond with a key that allow to send the content to finish the synchronization.
func UpgradeToReadWrite ¶
UpgradeToReadWrite is used to receive the credentials for pushing updates on an instance of a recipient that was in read-only mode
Types ¶
This section is empty.