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 ¶
func AddReadOnly(c echo.Context) error
AddReadOnly is used to downgrade a read-write member to read-only
func AddRecipients ¶
func AddRecipients(c echo.Context) error
AddRecipients is used to add a member to a sharing
func AddRecipientsDelegated ¶
func AddRecipientsDelegated(c echo.Context) error
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 ¶
func AnswerSharing(c echo.Context) error
AnswerSharing is used to exchange credentials between 2 cozys, after the recipient has accepted a sharing.
func ChangeCozyAddress ¶
func ChangeCozyAddress(c echo.Context) error
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 ¶
func CountNewShortcuts(c echo.Context) error
CountNewShortcuts returns the number of shortcuts to a sharing that have not been seen.
func CreateSharing ¶
func CreateSharing(c echo.Context) error
CreateSharing initializes a new sharing (on the sharer)
func DowngradeToReadOnly ¶
func DowngradeToReadOnly(c echo.Context) error
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 ¶
func EndInitial(c echo.Context) error
EndInitial is used for ending the initial sync phase of a sharing
func FileHandler ¶
func FileHandler(c echo.Context) error
FileHandler is used to receive a file upload
func GetAvatar ¶
func GetAvatar(c echo.Context) error
GetAvatar returns the avatar of the given member of the sharing.
func GetDiscovery ¶
func GetDiscovery(c echo.Context) error
GetDiscovery displays a form where a recipient can give the address of their cozy instance
func GetPreviewURL ¶
func GetPreviewURL(c echo.Context) error
GetPreviewURL returns the preview URL for the member identified by their state parameter.
func GetSharing ¶
func GetSharing(c echo.Context) error
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 ¶
func GetSharingsInfoByDocType(c echo.Context) error
GetSharingsInfoByDocType returns, for a given doctype, all the sharing information, i.e. the involved sharings and the shared documents
func PostDiscovery ¶
func PostDiscovery(c echo.Context) error
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 ¶
func PutRecipients(c echo.Context) error
PutRecipients is used to update the members list on the recipients cozy
func PutSharing ¶
func PutSharing(c echo.Context) error
PutSharing creates a sharing request (on the recipient's cozy)
func ReceivePublicKey ¶
func ReceivePublicKey(c echo.Context) error
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 ¶
func RemoveReadOnly(c echo.Context) error
RemoveReadOnly is used to give read-write to a member that had the read-only flag
func ReuploadHandler ¶
func ReuploadHandler(c echo.Context) error
ReuploadHandler is used to try sending again files
func RevocationOwnerNotif ¶
func RevocationOwnerNotif(c echo.Context) error
RevocationOwnerNotif is used to inform the owner that a recipient has revoked himself/herself from the sharing
func RevocationRecipientNotif ¶
func RevocationRecipientNotif(c echo.Context) error
RevocationRecipientNotif is used to inform a recipient that the sharing is revoked
func RevokeRecipient ¶
func RevokeRecipient(c echo.Context) error
RevokeRecipient is used by the owner to revoke a recipient
func RevokeRecipientBySelf ¶
func RevokeRecipientBySelf(c echo.Context) error
RevokeRecipientBySelf is used by a recipient to revoke himself/herself from the sharing
func RevokeSharing ¶
func RevokeSharing(c echo.Context) error
RevokeSharing is used to revoke a sharing by the sharer, for all recipients
func SyncFile ¶
func SyncFile(c echo.Context) error
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 ¶
func UpgradeToReadWrite(c echo.Context) error
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.