Documentation ¶
Index ¶
- func ContainerCreated(r *provider.CreateContainerResponse, req *provider.CreateContainerRequest, ...) events.ContainerCreated
- func FileDownloaded(r *provider.InitiateFileDownloadResponse, ...) events.FileDownloaded
- func FileLocked(r *provider.SetLockResponse, req *provider.SetLockRequest, ...) events.FileLocked
- func FileTouched(r *provider.TouchFileResponse, req *provider.TouchFileRequest, ...) events.FileTouched
- func FileUnlocked(r *provider.UnlockResponse, req *provider.UnlockRequest, ...) events.FileUnlocked
- func FileUploaded(r *provider.InitiateFileUploadResponse, ...) events.FileUploaded
- func FileVersionRestored(r *provider.RestoreFileVersionResponse, ...) events.FileVersionRestored
- func ItemMoved(r *provider.MoveResponse, req *provider.MoveRequest, ...) events.ItemMoved
- func ItemPurged(r *provider.PurgeRecycleResponse, req *provider.PurgeRecycleRequest, ...) events.ItemPurged
- func ItemRestored(r *provider.RestoreRecycleItemResponse, ...) events.ItemRestored
- func ItemTrashed(r *provider.DeleteResponse, req *provider.DeleteRequest, ...) events.ItemTrashed
- func LinkAccessFailed(r *link.GetPublicShareByTokenResponse, req *link.GetPublicShareByTokenRequest, ...) events.LinkAccessFailed
- func LinkAccessed(r *link.GetPublicShareByTokenResponse, executant *user.UserId) events.LinkAccessed
- func LinkCreated(r *link.CreatePublicShareResponse, executant *user.UserId) events.LinkCreated
- func LinkRemoved(r *link.RemovePublicShareResponse, req *link.RemovePublicShareRequest, ...) events.LinkRemoved
- func LinkUpdated(r *link.UpdatePublicShareResponse, req *link.UpdatePublicShareRequest, ...) events.LinkUpdated
- func NewStream() grpc.StreamServerInterceptor
- func NewUnary(m map[string]interface{}) (grpc.UnaryServerInterceptor, int, error)
- func ReceivedShareUpdated(r *collaboration.UpdateReceivedShareResponse, executant *user.UserId) events.ReceivedShareUpdated
- func ShareCreated(r *collaboration.CreateShareResponse, executant *user.UserId) events.ShareCreated
- func ShareRemoved(r *collaboration.RemoveShareResponse, req *collaboration.RemoveShareRequest, ...) events.ShareRemoved
- func ShareUpdated(r *collaboration.UpdateShareResponse, req *collaboration.UpdateShareRequest, ...) events.ShareUpdated
- func SpaceCreated(r *provider.CreateStorageSpaceResponse, executant *user.UserId) events.SpaceCreated
- func SpaceDeleted(r *provider.DeleteStorageSpaceResponse, ...) events.SpaceDeleted
- func SpaceDisabled(r *provider.DeleteStorageSpaceResponse, ...) events.SpaceDisabled
- func SpaceEnabled(r *provider.UpdateStorageSpaceResponse, ...) events.SpaceEnabled
- func SpaceRenamed(r *provider.UpdateStorageSpaceResponse, ...) events.SpaceRenamed
- func SpaceShareUpdated(r *provider.UpdateGrantResponse, req *provider.UpdateGrantRequest, ...) events.SpaceShareUpdated
- func SpaceShared(r *provider.AddGrantResponse, req *provider.AddGrantRequest, ...) events.SpaceShared
- func SpaceUnshared(r *provider.RemoveGrantResponse, req *provider.RemoveGrantRequest, ...) events.SpaceUnshared
- func SpaceUpdated(r *provider.UpdateStorageSpaceResponse, ...) events.SpaceUpdated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerCreated ¶ added in v2.3.0
func ContainerCreated(r *provider.CreateContainerResponse, req *provider.CreateContainerRequest, spaceOwner, executant *user.UserId) events.ContainerCreated
ContainerCreated converts the response to an event
func FileDownloaded ¶ added in v2.1.0
func FileDownloaded(r *provider.InitiateFileDownloadResponse, req *provider.InitiateFileDownloadRequest, executant *user.UserId) events.FileDownloaded
FileDownloaded converts the response to an event
func FileLocked ¶ added in v2.19.2
func FileLocked(r *provider.SetLockResponse, req *provider.SetLockRequest, owner, executant *user.UserId) events.FileLocked
FileLocked converts the response to an events
func FileTouched ¶ added in v2.6.1
func FileTouched(r *provider.TouchFileResponse, req *provider.TouchFileRequest, spaceOwner, executant *user.UserId) events.FileTouched
FileTouched converts the response to an event
func FileUnlocked ¶ added in v2.19.2
func FileUnlocked(r *provider.UnlockResponse, req *provider.UnlockRequest, owner, executant *user.UserId) events.FileUnlocked
FileUnlocked converts the response to an event
func FileUploaded ¶ added in v2.1.0
func FileUploaded(r *provider.InitiateFileUploadResponse, req *provider.InitiateFileUploadRequest, spaceOwner, executant *user.UserId) events.FileUploaded
FileUploaded converts the response to an event
func FileVersionRestored ¶ added in v2.1.0
func FileVersionRestored(r *provider.RestoreFileVersionResponse, req *provider.RestoreFileVersionRequest, spaceOwner, executant *user.UserId) events.FileVersionRestored
FileVersionRestored converts the response to an event
func ItemMoved ¶ added in v2.1.0
func ItemMoved(r *provider.MoveResponse, req *provider.MoveRequest, spaceOwner, executant *user.UserId) events.ItemMoved
ItemMoved converts the response to an event
func ItemPurged ¶ added in v2.1.0
func ItemPurged(r *provider.PurgeRecycleResponse, req *provider.PurgeRecycleRequest, executant *user.UserId) events.ItemPurged
ItemPurged converts the response to an event
func ItemRestored ¶ added in v2.1.0
func ItemRestored(r *provider.RestoreRecycleItemResponse, req *provider.RestoreRecycleItemRequest, spaceOwner, executant *user.UserId) events.ItemRestored
ItemRestored converts the response to an event
func ItemTrashed ¶ added in v2.1.0
func ItemTrashed(r *provider.DeleteResponse, req *provider.DeleteRequest, spaceOwner, executant *user.UserId) events.ItemTrashed
ItemTrashed converts the response to an event
func LinkAccessFailed ¶ added in v2.1.0
func LinkAccessFailed(r *link.GetPublicShareByTokenResponse, req *link.GetPublicShareByTokenRequest, executant *user.UserId) events.LinkAccessFailed
LinkAccessFailed converts the response to an event
func LinkAccessed ¶ added in v2.1.0
func LinkAccessed(r *link.GetPublicShareByTokenResponse, executant *user.UserId) events.LinkAccessed
LinkAccessed converts the response to an event
func LinkCreated ¶ added in v2.1.0
func LinkCreated(r *link.CreatePublicShareResponse, executant *user.UserId) events.LinkCreated
LinkCreated converts the response to an event
func LinkRemoved ¶ added in v2.1.0
func LinkRemoved(r *link.RemovePublicShareResponse, req *link.RemovePublicShareRequest, executant *user.UserId) events.LinkRemoved
LinkRemoved converts the response to an event
func LinkUpdated ¶ added in v2.1.0
func LinkUpdated(r *link.UpdatePublicShareResponse, req *link.UpdatePublicShareRequest, executant *user.UserId) events.LinkUpdated
LinkUpdated converts the response to an event
func NewStream ¶
func NewStream() grpc.StreamServerInterceptor
NewStream returns a new server stream interceptor that creates the application context.
func NewUnary ¶
func NewUnary(m map[string]interface{}) (grpc.UnaryServerInterceptor, int, error)
NewUnary returns a new unary interceptor that emits events when needed no lint because of the switch statement that should be extendable
func ReceivedShareUpdated ¶ added in v2.1.0
func ReceivedShareUpdated(r *collaboration.UpdateReceivedShareResponse, executant *user.UserId) events.ReceivedShareUpdated
ReceivedShareUpdated converts the response to an event
func ShareCreated ¶
func ShareCreated(r *collaboration.CreateShareResponse, executant *user.UserId) events.ShareCreated
ShareCreated converts the response to an event
func ShareRemoved ¶ added in v2.1.0
func ShareRemoved(r *collaboration.RemoveShareResponse, req *collaboration.RemoveShareRequest, executant *user.UserId) events.ShareRemoved
ShareRemoved converts the response to an event
func ShareUpdated ¶ added in v2.1.0
func ShareUpdated(r *collaboration.UpdateShareResponse, req *collaboration.UpdateShareRequest, executant *user.UserId) events.ShareUpdated
ShareUpdated converts the response to an event
func SpaceCreated ¶ added in v2.1.0
func SpaceCreated(r *provider.CreateStorageSpaceResponse, executant *user.UserId) events.SpaceCreated
SpaceCreated converts the response to an event
func SpaceDeleted ¶ added in v2.1.0
func SpaceDeleted(r *provider.DeleteStorageSpaceResponse, req *provider.DeleteStorageSpaceRequest, executant *user.UserId) events.SpaceDeleted
SpaceDeleted converts the response to an event
func SpaceDisabled ¶ added in v2.1.0
func SpaceDisabled(r *provider.DeleteStorageSpaceResponse, req *provider.DeleteStorageSpaceRequest, executant *user.UserId) events.SpaceDisabled
SpaceDisabled converts the response to an event
func SpaceEnabled ¶ added in v2.1.0
func SpaceEnabled(r *provider.UpdateStorageSpaceResponse, req *provider.UpdateStorageSpaceRequest, executant *user.UserId) events.SpaceEnabled
SpaceEnabled converts the response to an event
func SpaceRenamed ¶ added in v2.1.0
func SpaceRenamed(r *provider.UpdateStorageSpaceResponse, req *provider.UpdateStorageSpaceRequest, executant *user.UserId) events.SpaceRenamed
SpaceRenamed converts the response to an event
func SpaceShareUpdated ¶ added in v2.20.0
func SpaceShareUpdated(r *provider.UpdateGrantResponse, req *provider.UpdateGrantRequest, executant *user.UserId) events.SpaceShareUpdated
SpaceShareUpdated converts the response to an events
func SpaceShared ¶ added in v2.11.0
func SpaceShared(r *provider.AddGrantResponse, req *provider.AddGrantRequest, executant *user.UserId) events.SpaceShared
SpaceShared converts the response to an event func SpaceShared(req *provider.AddGrantRequest, executant, sharer *user.UserId, grantee *provider.Grantee) events.SpaceShared {
func SpaceUnshared ¶ added in v2.12.0
func SpaceUnshared(r *provider.RemoveGrantResponse, req *provider.RemoveGrantRequest, executant *user.UserId) events.SpaceUnshared
SpaceUnshared converts the response to an event
func SpaceUpdated ¶ added in v2.12.0
func SpaceUpdated(r *provider.UpdateStorageSpaceResponse, req *provider.UpdateStorageSpaceRequest, executant *user.UserId) events.SpaceUpdated
SpaceUpdated converts the response to an event
Types ¶
This section is empty.