Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileEvent ¶
type FileEvent struct { Path string Bucket string Info os.FileInfo Type FileEventType }
func NewFileEvent ¶
func NewFileEvent(path, bucket string, eventType FileEventType, info os.FileInfo) FileEvent
type FileEventType ¶
type FileEventType string
const ( FileAdded FileEventType = "FileAdded" FileDeleted FileEventType = "FileDeleted" FileUpdated FileEventType = "FileUpdated" FileBackupInProgress FileEventType = "FileBackupInProgress" FileBackupReady FileEventType = "FileBackupReady" FolderAdded FileEventType = "FolderAdded" FolderDeleted FileEventType = "FolderDeleted" // NOTE: not sure if this needs to be specific to rename or copy FolderUpdated FileEventType = "FolderUpdated" )
type Invitation ¶ added in v0.0.11
type Invitation struct { InviterPublicKey string InvitationID string Status InvitationStatus ItemPaths []string }
type InvitationStatus ¶ added in v0.0.11
type InvitationStatus int
const ( Pending InvitationStatus = 0 Accepted Rejected )
type NotificationEvent ¶ added in v0.0.11
type NotificationEvent struct { Subject string Body string RelatedObject interface{} Type NotificationType CreatedAt int64 ReadAt int64 }
type NotificationType ¶ added in v0.0.11
type NotificationType int
const (
InvitationType NotificationType = 0
)
type TextileEvent ¶
type TextileEvent struct {
BucketName string
}
func NewTextileEvent ¶
func NewTextileEvent(bucketname string) TextileEvent
Click to show internal directories.
Click to hide internal directories.