Skip to content

Commit

Permalink
restore files
Browse files Browse the repository at this point in the history
  • Loading branch information
maurycy authored Oct 23, 2020
1 parent ad23be1 commit d3a5e44
Show file tree
Hide file tree
Showing 29 changed files with 1,858 additions and 1,977 deletions.
3 changes: 3 additions & 0 deletions core/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ const (
FileBackupInProgress FileEventType = "FileBackupInProgress"
FileBackupReady FileEventType = "FileBackupReady"

FileRestored FileEventType = "FileRestored"
FileRestoring FileEventType = "FileRestoring"

FolderAdded FileEventType = "FolderAdded"
FolderDeleted FileEventType = "FolderDeleted"
// NOTE: not sure if this needs to be specific to rename or copy
Expand Down
20 changes: 11 additions & 9 deletions core/space/domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ type ThreadInfo struct {

type FileInfo struct {
DirEntry
IpfsHash string
BackedUp bool
LocallyAvailable bool
BackupInProgress bool
IpfsHash string
BackedUp bool
LocallyAvailable bool
BackupInProgress bool
RestoreInProgress bool
}

type OpenFileInfo struct {
Expand Down Expand Up @@ -152,11 +153,12 @@ type APISessionTokens struct {
}

type MirrorFile struct {
Path string
BucketSlug string
Backup bool
Shared bool
BackupInProgress bool
Path string
BucketSlug string
Backup bool
Shared bool
BackupInProgress bool
RestoreInProgress bool
}

type SharedDirEntry struct {
Expand Down
Loading

0 comments on commit d3a5e44

Please sign in to comment.