cloud

package
v5.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: AGPL-3.0 Imports: 43 Imported by: 1

Documentation

Index

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
var LeftNavigate = &navigate.Item{
	Display: true,
	Name:    `云服务`,
	Action:  `cloud`,
	Icon:    `cloud`,
	Children: &navigate.List{
		{
			Display: true,
			Name:    `云存储账号`,
			Action:  `storage`,
		},
		{
			Display: true,
			Name:    `添加账号`,
			Action:  `storage_add`,
			Icon:    `plus`,
		},
		{
			Display: false,
			Name:    `修改账号`,
			Action:  `storage_edit`,
		},
		{
			Display: false,
			Name:    `删除账号`,
			Action:  `storage_delete`,
		},
		{
			Display: false,
			Name:    `云存储文件管理`,
			Action:  `storage_file`,
		},
		{
			Display: true,
			Name:    `文件备份`,
			Action:  `backup`,
		},
		{
			Display: false,
			Name:    `添加备份配置`,
			Action:  `backup_add`,
			Icon:    `plus`,
		},
		{
			Display: false,
			Name:    `修改备份配置`,
			Action:  `backup_edit`,
		},
		{
			Display: false,
			Name:    `删除备份配置`,
			Action:  `backup_delete`,
		},
		{
			Display: false,
			Name:    `启动备份任务`,
			Action:  `backup_start`,
		},
		{
			Display: false,
			Name:    `停止备份任务`,
			Action:  `backup_stop`,
		},
		{
			Display: false,
			Name:    `云备份日志列表`,
			Action:  `backup_log`,
		},
		{
			Display: false,
			Name:    `云备份日志删除`,
			Action:  `backup_log_delete`,
		},
	},
}
View Source
var Module = module.Module{
	Navigate: func(nc *navigate.Collection) {
		nc.Backend.AddLeftItems(-1, LeftNavigate)
	},
}

Functions

func BackupConfigAdd

func BackupConfigAdd(ctx echo.Context) error

func BackupConfigDelete

func BackupConfigDelete(ctx echo.Context) error

func BackupConfigEdit

func BackupConfigEdit(ctx echo.Context) error

func BackupConfigList

func BackupConfigList(ctx echo.Context) error

func BackupStart

func BackupStart(ctx echo.Context) error

func BackupStop

func BackupStop(ctx echo.Context) error

func Log added in v5.2.1

func Log(ctx echo.Context) error

func LogDelete added in v5.2.1

func LogDelete(ctx echo.Context) error

func RegisterFileSource added in v5.2.5

func RegisterFileSource(name string, description string, fileSystem func() http.FileSystem)

func StorageAdd

func StorageAdd(ctx echo.Context) error

func StorageDelete

func StorageDelete(ctx echo.Context) error

func StorageEdit

func StorageEdit(ctx echo.Context) error

func StorageFile

func StorageFile(ctx echo.Context) error

func StorageIndex

func StorageIndex(ctx echo.Context) error

Types

type FileSource added in v5.2.5

type FileSource struct {
	Name        string
	Description string
	// contains filtered or unexported fields
}

func GetFileSource added in v5.2.5

func GetFileSource(name string) (fs *FileSource)

func GetFileSources added in v5.2.5

func GetFileSources() []FileSource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL