controllers

package
v0.0.0-...-746aa3e Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: GPL-3.0 Imports: 34 Imported by: 0

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 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 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 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 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 AdminOneDriveOAuth

func AdminOneDriveOAuth(c *gin.Context)

AdminOneDriveOAuth 获取 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 AnonymousGetContent

func AnonymousGetContent(c *gin.Context)

AnonymousGetContent 匿名获取文件资源

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 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 DeleteShare

func DeleteShare(c *gin.Context)

DeleteShare 删除分享

func DeleteTag

func DeleteTag(c *gin.Context)

DeleteTag 删除标签

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 FileUploadStream

func FileUploadStream(c *gin.Context)

FileUploadStream 本地策略流式上传

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 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)

GetSource 获取文件的外链地址

func GetUploadCredential

func GetUploadCredential(c *gin.Context)

GetUploadCredential 获取上传凭证

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 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 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 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 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 SlaveDelete

func SlaveDelete(c *gin.Context)

SlaveDelete 从机删除

func SlaveDownload

func SlaveDownload(c *gin.Context)

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

func SlaveList

func SlaveList(c *gin.Context)

SlaveList 从机列出文件

func SlavePing

func SlavePing(c *gin.Context)

SlavePing 从机测试

func SlavePreview

func SlavePreview(c *gin.Context)

SlavePreview 从机文件预览

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 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 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