Documentation ¶
Index ¶
- func DeleteVaultFile(path string) error
- func GetDeletedFiles() (any, error)
- func GetFileData(uid int) (*[]byte, error)
- func GetFileHistory(path string) (*[]File, error)
- func GetVaultFiles(vaultID string) (*[]File, error)
- func GetVaultSize(vaultID string) (int64, error)
- func InsertData(uid int, data *[]byte) error
- func InsertMetadata(vaultID string, file File) (int, error)
- func Snapshot(vaultID string) error
- type File
- type Share
- type Vault
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteVaultFile ¶
func GetDeletedFiles ¶
func GetFileData ¶
func GetFileHistory ¶
func GetVaultFiles ¶
func GetVaultSize ¶
func InsertData ¶
Types ¶
type File ¶
type File struct { Op string `json:"op,omitempty"` Path string `json:"path"` Hash string `json:"hash,omitempty"` Extension string `json:"extension,omitempty"` Size int64 `json:"size"` Created int64 `json:"ctime,omitempty"` Modified int64 `json:"mtime,omitempty"` Timestamp int64 `json:"ts,omitempty"` RelatedPath string `json:"related_path,omitempty"` Folder bool `json:"folder"` Deleted bool `json:"deleted"` UID int `json:"uid"` Data []byte `json:"-"` }
func RestoreFile ¶
type Vault ¶
type Vault struct { ID string `json:"id"` UserEmail string `json:"user_email,omitempty"` Created int64 `json:"created"` Host string `json:"host"` Name string `json:"name"` Password string `json:"password"` Salt string `json:"salt"` Size int64 `json:"size"` // Not part of JSON Version int `json:"-"` }
Click to show internal directories.
Click to hide internal directories.