cloud

package
v3.5.5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: AGPL-3.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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`,
		},
	},
}

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 FileChan

func FileChan() chan *PutFile

func ResetFileChan

func ResetFileChan()

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 PutFile

type PutFile struct {
	Manager    *s3manager.S3Manager
	ObjectName string
	FilePath   string
}

func (*PutFile) Do

func (mf *PutFile) Do() error

Jump to

Keyboard shortcuts

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