Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupItem ¶ added in v0.0.11
type DetailItem ¶
type ObjectStorage ¶ added in v0.0.11
type ObjectStorage interface { Init() error GetDirPath() string UploadFile(key string, localFilePath string) bool DownloadFile(key string, localFilePath string) bool // If file in oss is newer than localfile? // if newer > 0, file in oss is newer than localfile // if newer == 0 file in oss is new as localfile // if newer < 0 localfile is newer than file in oss Compare(key string, localFilePath string) (newer int, err error) // modify Mtime of local file to consistent with file in oss AdjustMTime(key string, localFilePath string) error ListKeys(prefix string) ([]string, error) Delete(key string) error }
type SimpleItem ¶
Click to show internal directories.
Click to hide internal directories.