Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteVaultFile ¶
func GetDeletedFiles ¶
func GetVaultSize ¶
func InsertData ¶
func InsertMetadata ¶
Types ¶
type File ¶
type File struct { UID int `json:"uid" gorm:"primary_key;autoIncrement"` VaultID string `json:"vault_id"` Hash string `json:"hash"` Path string `json:"path"` Extension string `json:"extension"` Size int64 `json:"size"` Created int64 `json:"created"` Modified int64 `json:"modified"` Folder bool `json:"folder"` Deleted bool `json:"deleted"` Data []byte `json:"-"` Newest bool `json:"newest" gorm:"default:true"` IsSnapshot bool `json:"is_snapshot" gorm:"default:false"` }
func GetVaultFiles ¶
type FileResponse ¶
func RestoreFile ¶
func RestoreFile(uid int) (*FileResponse, error)
type HistoryFile ¶ added in v0.1.6
func GetFileHistory ¶
func GetFileHistory(path string) ([]*HistoryFile, error)
Click to show internal directories.
Click to hide internal directories.