Documentation ¶
Index ¶
- Constants
- Variables
- func BackupConfigAdd(ctx echo.Context) error
- func BackupConfigDelete(ctx echo.Context) error
- func BackupConfigEdit(ctx echo.Context) error
- func BackupConfigList(ctx echo.Context) error
- func BackupRestore(ctx echo.Context) error
- func BackupStart(ctx echo.Context) error
- func BackupStop(ctx echo.Context) error
- func Log(ctx echo.Context) error
- func LogDelete(ctx echo.Context) error
- func RegisterFileSource(name string, description string, fileSystem func() http.FileSystem)
- func StorageAdd(ctx echo.Context) error
- func StorageDelete(ctx echo.Context) error
- func StorageEdit(ctx echo.Context) error
- func StorageFile(ctx echo.Context) error
- func StorageIndex(ctx echo.Context) error
- type FileSource
Constants ¶
View Source
const ID = `cloud`
Variables ¶
View Source
var ErrNotSupportMonitor = errors.New(`This type of file does not support monitoring change status`)
View Source
var ( // ErrRunningPleaseWait 正在运行中 ErrRunningPleaseWait = errors.New("running, please wait") )
View Source
true, Name: echo.T(`云服务`), Action: `cloud`, Icon: `cloud`, Children: &navigate.List{ { Display: true, Name: echo.T(`云存储账号`), Action: `storage`, }, { Display: true, Name: echo.T(`添加账号`), Action: `storage_add`, Icon: `plus`, }, { Display: false, Name: echo.T(`修改账号`), Action: `storage_edit`, }, { Display: false, Name: echo.T(`删除账号`), Action: `storage_delete`, }, { Display: false, Name: echo.T(`云存储文件管理`), Action: `storage_file`, }, { Display: true, Name: echo.T(`文件备份`), Action: `backup`, }, { Display: false, Name: echo.T(`添加备份配置`), Action: `backup_add`, Icon: `plus`, }, { Display: false, Name: echo.T(`修改备份配置`), Action: `backup_edit`, }, { Display: false, Name: echo.T(`删除备份配置`), Action: `backup_delete`, }, { Display: false, Name: echo.T(`启动备份任务`), Action: `backup_start`, }, { Display: false, Name: echo.T(`停止备份任务`), Action: `backup_stop`, }, { Display: false, Name: echo.T(`恢复备份文件`), Action: `backup_restore`, }, { Display: false, Name: echo.T(`云备份日志列表`), Action: `backup_log`, }, { Display: false, Name: echo.T(`云备份日志删除`), Action: `backup_log_delete`, }, }, }Display:
View Source
var Module = module.Module{ Navigate: func(nc module.Navigate) { nc.Backend().AddLeftItems(-1, LeftNavigate) }, }
Functions ¶
func BackupConfigAdd ¶
func BackupConfigDelete ¶
func BackupConfigEdit ¶
func BackupConfigList ¶
func BackupRestore ¶ added in v5.2.6
func BackupStart ¶
func BackupStop ¶
func RegisterFileSource ¶ added in v5.2.5
func RegisterFileSource(name string, description string, fileSystem func() http.FileSystem)
func StorageAdd ¶
func StorageDelete ¶
func StorageEdit ¶
func StorageFile ¶
func StorageIndex ¶
Types ¶
type FileSource ¶ added in v5.2.5
func GetFileSource ¶ added in v5.2.5
func GetFileSource(name string) (fs *FileSource)
func GetFileSources ¶ added in v5.2.5
func GetFileSources() []FileSource
Click to show internal directories.
Click to hide internal directories.