controllers

package
v3.0.0-...-3373b9d Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 37 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAria2Torrent

func AddAria2Torrent(c *gin.Context)

AddAria2Torrent 添加离线下载种子

func AddAria2URL

func AddAria2URL(c *gin.Context)

AddAria2URL 添加离线下载URL

func AdminAddCORS

func AdminAddCORS(c *gin.Context)

AdminAddCORS 创建跨域策略

func AdminAddGroup

func AdminAddGroup(c *gin.Context)

AdminAddGroup 新建用户组

func AdminAddNode

func AdminAddNode(c *gin.Context)

AdminAddNode 新建节点

func AdminAddPolicy

func AdminAddPolicy(c *gin.Context)

AdminAddPolicy 新建存储策略

func AdminAddSCF

func AdminAddSCF(c *gin.Context)

AdminAddSCF 创建回调函数

func AdminAddUser

func AdminAddUser(c *gin.Context)

AdminAddUser 新建用户组

func AdminBanUser

func AdminBanUser(c *gin.Context)

AdminBanUser 封禁/解封用户

func AdminChangeSetting

func AdminChangeSetting(c *gin.Context)

AdminChangeSetting 获取站点设定项

func AdminCreateImportTask

func AdminCreateImportTask(c *gin.Context)

AdminCreateImportTask 新建文件导入任务

func AdminDeleteDownload

func AdminDeleteDownload(c *gin.Context)

AdminDeleteDownload 批量删除任务

func AdminDeleteFile

func AdminDeleteFile(c *gin.Context)

AdminDeleteFile 批量删除文件

func AdminDeleteGroup

func AdminDeleteGroup(c *gin.Context)

AdminDeleteGroup 删除用户组

func AdminDeleteNode

func AdminDeleteNode(c *gin.Context)

AdminDeleteGroup 删除用户组

func AdminDeletePolicy

func AdminDeletePolicy(c *gin.Context)

AdminDeletePolicy 删除存储策略

func AdminDeleteShare

func AdminDeleteShare(c *gin.Context)

AdminDeleteShare 批量删除分享

func AdminDeleteTask

func AdminDeleteTask(c *gin.Context)

AdminDeleteTask 批量删除任务

func AdminDeleteUser

func AdminDeleteUser(c *gin.Context)

AdminDeleteUser 批量删除用户

func AdminGetFile

func AdminGetFile(c *gin.Context)

AdminGetFile 获取文件

func AdminGetGroup

func AdminGetGroup(c *gin.Context)

AdminGetGroup 获取用户组详情

func AdminGetGroups

func AdminGetGroups(c *gin.Context)

AdminGetGroups 获取用户组列表

func AdminGetNode

func AdminGetNode(c *gin.Context)

AdminGetNode 获取节点详情

func AdminGetPolicy

func AdminGetPolicy(c *gin.Context)

AdminGetPolicy 获取存储策略详情

func AdminGetSetting

func AdminGetSetting(c *gin.Context)

AdminGetSetting 获取站点设置

func AdminGetUser

func AdminGetUser(c *gin.Context)

AdminGetUser 获取用户详情

func AdminListDownload

func AdminListDownload(c *gin.Context)

AdminListDownload 列出离线下载任务

func AdminListFile

func AdminListFile(c *gin.Context)

AdminListFile 列出文件

func AdminListFolders

func AdminListFolders(c *gin.Context)

AdminListFolders 列出用户或外部文件系统目录

func AdminListGroup

func AdminListGroup(c *gin.Context)

AdminListGroup 列出用户组

func AdminListNodes

func AdminListNodes(c *gin.Context)

AdminListNodes 列出从机节点

func AdminListPolicy

func AdminListPolicy(c *gin.Context)

AdminListPolicy 列出存储策略

func AdminListShare

func AdminListShare(c *gin.Context)

AdminListShare 列出分享

func AdminListTask

func AdminListTask(c *gin.Context)

AdminListTask 列出任务

func AdminListUser

func AdminListUser(c *gin.Context)

AdminListUser 列出用户

func AdminNews

func AdminNews(c *gin.Context)

AdminNews 获取社区新闻

func AdminOAuthURL

func AdminOAuthURL(policyType string) gin.HandlerFunc

AdminOAuthURL 获取 OneDrive OAuth URL

func AdminReloadService

func AdminReloadService(c *gin.Context)

AdminReloadService 重新加载子服务

func AdminSendTestMail

func AdminSendTestMail(c *gin.Context)

AdminSendTestMail 发送测试邮件

func AdminSummary

func AdminSummary(c *gin.Context)

AdminSummary 获取管理站点概况

func AdminTestAria2

func AdminTestAria2(c *gin.Context)

AdminTestAria2 测试aria2连接

func AdminTestPath

func AdminTestPath(c *gin.Context)

AdminTestPath 测试本地路径可用性

func AdminTestSlave

func AdminTestSlave(c *gin.Context)

AdminTestSlave 测试从机可用性

func AdminTestThumbGenerator

func AdminTestThumbGenerator(c *gin.Context)

AdminTestThumbGenerator Tests thumb generator

func AdminToggleNode

func AdminToggleNode(c *gin.Context)

AdminToggleNode 启用/暂停节点

func AnonymousGetContent

func AnonymousGetContent(c *gin.Context)

AnonymousGetContent 匿名获取文件资源

func AnonymousPermLink(c *gin.Context)

AnonymousPermLink 文件中转后的永久直链接

func AnonymousPermLinkDeprecated

func AnonymousPermLinkDeprecated(c *gin.Context)

AnonymousPermLink Deprecated 文件签名后的永久链接

func Archive

func Archive(c *gin.Context)

func ArchiveShare

func ArchiveShare(c *gin.Context)

ArchiveShare 打包要下载的分享

func COSCallback

func COSCallback(c *gin.Context)

COSCallback COS上传完成客户端回调

func CancelAria2Download

func CancelAria2Download(c *gin.Context)

CancelAria2Download 取消或删除aria2离线下载任务

func Captcha

func Captcha(c *gin.Context)

Captcha 获取验证码

func CheckFileInfo

func CheckFileInfo(c *gin.Context)

CheckFileInfo Get file info

func Compress

func Compress(c *gin.Context)

Compress 创建文件压缩任务

func Copy

func Copy(c *gin.Context)

Copy 复制文件或目录

func CreateDirectory

func CreateDirectory(c *gin.Context)

CreateDirectory 创建目录

func CreateDownloadSession

func CreateDownloadSession(c *gin.Context)

CreateDownloadSession 创建文件下载会话

func CreateFile

func CreateFile(c *gin.Context)

CreateFile 创建空白文件

func CreateFilterTag

func CreateFilterTag(c *gin.Context)

CreateFilterTag 创建文件分类标签

func CreateLinkTag

func CreateLinkTag(c *gin.Context)

CreateLinkTag 创建目录快捷方式标签

func CreateShare

func CreateShare(c *gin.Context)

CreateShare 创建分享

func CreateWebDAVAccounts

func CreateWebDAVAccounts(c *gin.Context)

CreateWebDAVAccounts 创建WebDAV账户

func CurrentUser

func CurrentUser(c *gin.Context) *model.User

CurrentUser 获取当前用户

func Decompress

func Decompress(c *gin.Context)

Decompress 创建文件解压缩任务

func Delete

func Delete(c *gin.Context)

Delete 删除文件或目录

func DeleteAllUploadSession

func DeleteAllUploadSession(c *gin.Context)

DeleteAllUploadSession 删除全部上传会话

func DeleteShare

func DeleteShare(c *gin.Context)

DeleteShare 删除分享

func DeleteTag

func DeleteTag(c *gin.Context)

DeleteTag 删除标签

func DeleteUploadSession

func DeleteUploadSession(c *gin.Context)

DeleteUploadSession 删除上传会话

func DeleteWebDAVAccounts

func DeleteWebDAVAccounts(c *gin.Context)

DeleteWebDAVAccounts 删除WebDAV账户

func Download

func Download(c *gin.Context)

Download 文件下载

func DownloadArchive

func DownloadArchive(c *gin.Context)

func ErrorResponse

func ErrorResponse(err error) serializer.Response

ErrorResponse 返回错误消息

func FileUpload

func FileUpload(c *gin.Context)

FileUpload 本地策略文件上传

func FinishLoginAuthn

func FinishLoginAuthn(c *gin.Context)

FinishLoginAuthn 完成注册WebAuthn登录

func FinishRegAuthn

func FinishRegAuthn(c *gin.Context)

FinishRegAuthn 完成注册WebAuthn信息

func GetDocPreview

func GetDocPreview(c *gin.Context)

GetDocPreview 获取DOC文件预览地址

func GetFile

func GetFile(c *gin.Context)

GetFile Get file content

func GetProperty

func GetProperty(c *gin.Context)

Rename 重命名文件或目录

func GetShare

func GetShare(c *gin.Context)

GetShare 查看分享

func GetShareDocPreview

func GetShareDocPreview(c *gin.Context)

GetShareDocPreview 创建分享Office文档预览地址

func GetShareDownload

func GetShareDownload(c *gin.Context)

GetShareDownload 创建分享下载会话

func GetSource

func GetSource(c *gin.Context)

func GetUploadSession

func GetUploadSession(c *gin.Context)

GetUploadSession 创建上传会话

func GetUserAvatar

func GetUserAvatar(c *gin.Context)

GetUserAvatar 获取用户头像

func GetUserShare

func GetUserShare(c *gin.Context)

GetUserShare 查看给定用户的分享

func GetWebDAVAccounts

func GetWebDAVAccounts(c *gin.Context)

GetWebDAVAccounts 获取webdav账号列表

func GoogleDriveOAuth

func GoogleDriveOAuth(c *gin.Context)

GoogleDriveOAuth Google Drive 授权回调

func ListDirectory

func ListDirectory(c *gin.Context)

ListDirectory 列出目录下内容

func ListDownloading

func ListDownloading(c *gin.Context)

ListDownloading 获取正在下载中的任务

func ListFinished

func ListFinished(c *gin.Context)

ListFinished 获取已完成的任务

func ListShare

func ListShare(c *gin.Context)

ListShare 列出分享

func ListSharedFolder

func ListSharedFolder(c *gin.Context)

ListSharedFolder 列出分享的目录下的对象

func Manifest

func Manifest(c *gin.Context)

Manifest 获取manifest.json

func ModifyFile

func ModifyFile(c *gin.Context)

ModifyFile Modify file properties

func Move

func Move(c *gin.Context)

Move 移动文件或目录

func OSSCallback

func OSSCallback(c *gin.Context)

OSSCallback 阿里云OSS上传回调

func OneDriveCallback

func OneDriveCallback(c *gin.Context)

OneDriveCallback OneDrive上传完成客户端回调

func OneDriveOAuth

func OneDriveOAuth(c *gin.Context)

OneDriveOAuth OneDrive 授权回调

func ParamErrorMsg

func ParamErrorMsg(filed string, tag string) string

ParamErrorMsg 根据Validator返回的错误信息给出错误提示

func Ping

func Ping(c *gin.Context)

Ping 状态检查页面

func Preview

func Preview(c *gin.Context)

Preview 预览文件

func PreviewShare

func PreviewShare(c *gin.Context)

PreviewShare 预览分享文件内容

func PreviewShareReadme

func PreviewShareReadme(c *gin.Context)

PreviewShareReadme 预览文本自述文件

func PreviewShareText

func PreviewShareText(c *gin.Context)

PreviewShareText 预览文本文件

func PreviewText

func PreviewText(c *gin.Context)

PreviewText 预览文本文件

func PutContent

func PutContent(c *gin.Context)

PutContent 更新文件内容

func PutFile

func PutFile(c *gin.Context)

PutFile Puts file content

func QiniuCallback

func QiniuCallback(c *gin.Context)

QiniuCallback 七牛上传回调

func RemoteCallback

func RemoteCallback(c *gin.Context)

RemoteCallback 远程上传回调

func Rename

func Rename(c *gin.Context)

Rename 重命名文件或目录

func S3Callback

func S3Callback(c *gin.Context)

S3Callback S3上传完成客户端回调

func SearchFile

func SearchFile(c *gin.Context)

SearchFile 搜索文件

func SearchShare

func SearchShare(c *gin.Context)

SearchShare 搜索分享

func SearchSharedFolder

func SearchSharedFolder(c *gin.Context)

SearchSharedFolder 搜索分享的目录下的对象

func SelectAria2File

func SelectAria2File(c *gin.Context)

SelectAria2File 选择多文件离线下载中要下载的文件

func ServeWebDAV

func ServeWebDAV(c *gin.Context)

ServeWebDAV 处理WebDAV相关请求

func ShareThumb

func ShareThumb(c *gin.Context)

ShareThumb 获取分享目录下文件的缩略图

func SiteConfig

func SiteConfig(c *gin.Context)

SiteConfig 获取站点全局配置

func SlaveAria2Create

func SlaveAria2Create(c *gin.Context)

SlaveAria2Create 创建 Aria2 任务

func SlaveAria2Status

func SlaveAria2Status(c *gin.Context)

SlaveAria2Status 查询从机 Aria2 任务状态

func SlaveCancelAria2Task

func SlaveCancelAria2Task(c *gin.Context)

SlaveCancelAria2Task 取消从机离线下载任务

func SlaveCreateTransferTask

func SlaveCreateTransferTask(c *gin.Context)

SlaveCreateTransferTask 从机创建中转任务

func SlaveDelete

func SlaveDelete(c *gin.Context)

SlaveDelete 从机删除

func SlaveDeleteTempFile

func SlaveDeleteTempFile(c *gin.Context)

SlaveSelectTask 从机删除离线下载临时文件

func SlaveDeleteUploadSession

func SlaveDeleteUploadSession(c *gin.Context)

SlaveDeleteUploadSession 从机删除上传会话

func SlaveDownload

func SlaveDownload(c *gin.Context)

SlaveDownload 从机文件下载,此请求返回的HTTP状态码不全为200

func SlaveGetOauthCredential

func SlaveGetOauthCredential(c *gin.Context)

SlaveGetOauthCredential 从机获取主机的OneDrive存储策略凭证

func SlaveGetUploadSession

func SlaveGetUploadSession(c *gin.Context)

SlaveGetUploadSession 从机创建上传会话

func SlaveHeartbeat

func SlaveHeartbeat(c *gin.Context)

SlaveHeartbeat 接受主机心跳包

func SlaveList

func SlaveList(c *gin.Context)

SlaveList 从机列出文件

func SlaveNotificationPush

func SlaveNotificationPush(c *gin.Context)

SlaveNotificationPush 处理从机发送的消息推送

func SlavePing

func SlavePing(c *gin.Context)

SlavePing 从机测试

func SlavePreview

func SlavePreview(c *gin.Context)

SlavePreview 从机文件预览

func SlaveSelectTask

func SlaveSelectTask(c *gin.Context)

SlaveSelectTask 从机选取离线下载文件

func SlaveThumb

func SlaveThumb(c *gin.Context)

SlaveThumb 从机文件缩略图

func SlaveUpload

func SlaveUpload(c *gin.Context)

SlaveUpload 从机文件上传

func StartLoginAuthn

func StartLoginAuthn(c *gin.Context)

StartLoginAuthn 开始注册WebAuthn登录

func StartRegAuthn

func StartRegAuthn(c *gin.Context)

StartRegAuthn 开始注册WebAuthn信息

func Thumb

func Thumb(c *gin.Context)

Thumb 获取文件缩略图

func UpdateOption

func UpdateOption(c *gin.Context)

UpdateOption 更改用户设定

func UpdateShare

func UpdateShare(c *gin.Context)

UpdateShare 更新分享属性

func UpdateWebDAVAccounts

func UpdateWebDAVAccounts(c *gin.Context)

UpdateWebDAVAccounts 更改WebDAV账户只读性和是否使用代理服务

func UploadAvatar

func UploadAvatar(c *gin.Context)

UploadAvatar 从文件上传头像

func UpyunCallback

func UpyunCallback(c *gin.Context)

UpyunCallback 又拍云上传回调

func UseGravatar

func UseGravatar(c *gin.Context)

UseGravatar 设定头像使用全球通用

func User2FALogin

func User2FALogin(c *gin.Context)

User2FALogin 用户二步验证登录

func UserActivate

func UserActivate(c *gin.Context)

UserActivate 用户激活

func UserInit2FA

func UserInit2FA(c *gin.Context)

UserInit2FA 初始化二步验证

func UserLogin

func UserLogin(c *gin.Context)

UserLogin 用户登录

func UserMe

func UserMe(c *gin.Context)

UserMe 获取当前登录的用户

func UserPerformCopySession

func UserPerformCopySession(c *gin.Context)

UserPerformCopySession copy to create new session or refresh current session

func UserPrepareCopySession

func UserPrepareCopySession(c *gin.Context)

UserPrepareCopySession generates URL for copy session

func UserRegister

func UserRegister(c *gin.Context)

UserRegister 用户注册

func UserReset

func UserReset(c *gin.Context)

UserReset 重设密码

func UserSendReset

func UserSendReset(c *gin.Context)

UserSendReset 发送密码重设邮件

func UserSetting

func UserSetting(c *gin.Context)

UserSetting 获取用户设定

func UserSignOut

func UserSignOut(c *gin.Context)

UserSignOut 用户退出登录

func UserStorage

func UserStorage(c *gin.Context)

UserStorage 获取用户的存储信息

func UserTasks

func UserTasks(c *gin.Context)

UserTasks 获取任务队列

Types

This section is empty.

Jump to

Keyboard shortcuts

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