Documentation
¶
Index ¶
- Constants
- func AddMyPublicKey(c *gin.Context)
- func AddOfflineDownload(c *gin.Context)
- func ArchiveDown(c *gin.Context)
- func ArchiveExtensions(c *gin.Context)
- func ArchiveInternalExtract(c *gin.Context)
- func ArchiveProxy(c *gin.Context)
- func BeginAuthnLogin(c *gin.Context)
- func BeginAuthnRegistration(c *gin.Context)
- func BuildIndex(c *gin.Context)
- func Cancel2FAById(c *gin.Context)
- func ClearIndex(c *gin.Context)
- func CreateMeta(c *gin.Context)
- func CreateStorage(c *gin.Context)
- func CreateUser(c *gin.Context)
- func CurrentUser(c *gin.Context)
- func DelUserCache(c *gin.Context)
- func DeleteAuthnLogin(c *gin.Context)
- func DeleteMeta(c *gin.Context)
- func DeleteMyPublicKey(c *gin.Context)
- func DeletePublicKey(c *gin.Context)
- func DeleteSetting(c *gin.Context)
- func DeleteStorage(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func DisableStorage(c *gin.Context)
- func Down(c *gin.Context)
- func EnableStorage(c *gin.Context)
- func Favicon(c *gin.Context)
- func FinishAuthnLogin(c *gin.Context)
- func FinishAuthnRegistration(c *gin.Context)
- func FsArchiveDecompress(c *gin.Context)
- func FsArchiveList(c *gin.Context)
- func FsArchiveMeta(c *gin.Context)
- func FsBatchRename(c *gin.Context)
- func FsCopy(c *gin.Context)
- func FsDirs(c *gin.Context)
- func FsForm(c *gin.Context)
- func FsGet(c *gin.Context)
- func FsList(c *gin.Context)
- func FsMkdir(c *gin.Context)
- func FsMove(c *gin.Context)
- func FsOther(c *gin.Context)
- func FsRecursiveMove(c *gin.Context)
- func FsRegexRename(c *gin.Context)
- func FsRemove(c *gin.Context)
- func FsRemoveEmptyDirectory(c *gin.Context)
- func FsRename(c *gin.Context)
- func FsStream(c *gin.Context)
- func Generate2FA(c *gin.Context)
- func GetAuthnCredentials(c *gin.Context)
- func GetDriverInfo(c *gin.Context)
- func GetMeta(c *gin.Context)
- func GetOIDCClient(c *gin.Context, useCompatibility bool, redirectUri, method string) (*oauth2.Config, error)
- func GetProgress(c *gin.Context)
- func GetSetting(c *gin.Context)
- func GetStorage(c *gin.Context)
- func GetUser(c *gin.Context)
- func Link(c *gin.Context)
- func ListDriverInfo(c *gin.Context)
- func ListDriverNames(c *gin.Context)
- func ListMetas(c *gin.Context)
- func ListMyPublicKey(c *gin.Context)
- func ListPublicKeys(c *gin.Context)
- func ListSettings(c *gin.Context)
- func ListStorages(c *gin.Context)
- func ListUsers(c *gin.Context)
- func LoadAllStorages(c *gin.Context)
- func LogOut(c *gin.Context)
- func Login(c *gin.Context)
- func LoginHash(c *gin.Context)
- func LoginLdap(c *gin.Context)
- func OIDCLoginCallback(c *gin.Context)
- func OfflineDownloadTools(c *gin.Context)
- func Plist(c *gin.Context)
- func Proxy(c *gin.Context)
- func PublicSettings(c *gin.Context)
- func ResetToken(c *gin.Context)
- func Robots(c *gin.Context)
- func SSOLoginCallback(c *gin.Context)
- func SSOLoginRedirect(c *gin.Context)
- func SaveSettings(c *gin.Context)
- func Search(c *gin.Context)
- func Set115(c *gin.Context)
- func SetAria2(c *gin.Context)
- func SetPikPak(c *gin.Context)
- func SetQbittorrent(c *gin.Context)
- func SetThunder(c *gin.Context)
- func SetTransmission(c *gin.Context)
- func SetupTaskRoute(g *gin.RouterGroup)
- func StopIndex(c *gin.Context)
- func UpdateCurrent(c *gin.Context)
- func UpdateIndex(c *gin.Context)
- func UpdateMeta(c *gin.Context)
- func UpdateStorage(c *gin.Context)
- func UpdateUser(c *gin.Context)
- func Verify2FA(c *gin.Context)
- type AddOfflineDownloadReq
- type ArchiveContentResp
- type ArchiveDecompressReq
- type ArchiveListReq
- type ArchiveListResp
- type ArchiveMetaReq
- type ArchiveMetaResp
- type BatchRenameReq
- type DirReq
- type DirResp
- type FsGetReq
- type FsGetResp
- type FsListResp
- type FsOtherReq
- type ListReq
- type LoginReq
- type MkdirOrLinkReq
- type MoveCopyReq
- type ObjResp
- type RecursiveMoveReq
- type RegexRenameReq
- type RemoveEmptyDirectoryReq
- type RemoveReq
- type RenameReq
- type SSHKeyAddReq
- type SearchReq
- type SearchResp
- type Set115Req
- type SetAria2Req
- type SetPikPakReq
- type SetQbittorrentReq
- type SetThunderReq
- type SetTransmissionReq
- type StringOrArray
- type TaskInfo
- type UpdateIndexReq
- type UserResp
- type Verify2FAReq
Constants ¶
View Source
const ( CANCEL = "cancel" OVERWRITE = "overwrite" SKIP = "skip" )
Variables ¶
This section is empty.
Functions ¶
func AddMyPublicKey ¶
func AddOfflineDownload ¶
func ArchiveDown ¶
func ArchiveExtensions ¶
func ArchiveInternalExtract ¶
func ArchiveProxy ¶
func BeginAuthnLogin ¶
func BeginAuthnRegistration ¶
func BuildIndex ¶
func Cancel2FAById ¶
func ClearIndex ¶
func CreateMeta ¶
func CreateStorage ¶
func CreateUser ¶
func CurrentUser ¶
CurrentUser get current user by token if token is empty, return guest user
func DelUserCache ¶
func DeleteAuthnLogin ¶
func DeleteMeta ¶
func DeleteMyPublicKey ¶
func DeletePublicKey ¶
func DeleteSetting ¶
func DeleteStorage ¶
func DeleteUser ¶
func DisableStorage ¶
func EnableStorage ¶
func FinishAuthnLogin ¶
func FinishAuthnRegistration ¶
func FsArchiveDecompress ¶
func FsArchiveList ¶
func FsArchiveMeta ¶
func FsBatchRename ¶
func FsRecursiveMove ¶
func FsRegexRename ¶
func FsRemoveEmptyDirectory ¶
func Generate2FA ¶
func GetAuthnCredentials ¶
func GetDriverInfo ¶
func GetOIDCClient ¶
func GetProgress ¶
func GetSetting ¶
func GetStorage ¶
func Link ¶
Link return real link, just for proxy program, it may contain cookie, so just allowed for admin
func ListDriverInfo ¶
func ListDriverNames ¶
func ListMyPublicKey ¶
func ListPublicKeys ¶
func ListSettings ¶
func ListStorages ¶
func LoadAllStorages ¶
func OIDCLoginCallback ¶
func OfflineDownloadTools ¶
func PublicSettings ¶
func ResetToken ¶
func SSOLoginCallback ¶
func SSOLoginRedirect ¶
func SaveSettings ¶
func SetQbittorrent ¶
func SetThunder ¶
func SetTransmission ¶
func SetupTaskRoute ¶
func SetupTaskRoute(g *gin.RouterGroup)
func UpdateCurrent ¶
func UpdateIndex ¶
func UpdateMeta ¶
func UpdateStorage ¶
func UpdateUser ¶
Types ¶
type AddOfflineDownloadReq ¶
type ArchiveContentResp ¶
type ArchiveContentResp struct { ObjResp Children []ArchiveContentResp `json:"children"` }
type ArchiveDecompressReq ¶
type ArchiveDecompressReq struct { SrcDir string `json:"src_dir" form:"src_dir"` DstDir string `json:"dst_dir" form:"dst_dir"` Name StringOrArray `json:"name" form:"name"` ArchivePass string `json:"archive_pass" form:"archive_pass"` InnerPath string `json:"inner_path" form:"inner_path"` CacheFull bool `json:"cache_full" form:"cache_full"` PutIntoNewDir bool `json:"put_into_new_dir" form:"put_into_new_dir"` }
type ArchiveListReq ¶
type ArchiveListReq struct { ArchiveMetaReq model.PageReq InnerPath string `json:"inner_path" form:"inner_path"` }
type ArchiveListResp ¶
type ArchiveMetaReq ¶
type ArchiveMetaResp ¶
type BatchRenameReq ¶
type FsListResp ¶
type FsOtherReq ¶
type FsOtherReq struct { model.FsOtherArgs Password string `json:"password" form:"password"` }
type MkdirOrLinkReq ¶
type MkdirOrLinkReq struct {
Path string `json:"path" form:"path"`
}
type MoveCopyReq ¶
type ObjResp ¶
type ObjResp struct { Id string `json:"id"` Path string `json:"path"` Name string `json:"name"` Size int64 `json:"size"` IsDir bool `json:"is_dir"` Modified time.Time `json:"modified"` Created time.Time `json:"created"` Sign string `json:"sign"` Thumb string `json:"thumb"` Type int `json:"type"` HashInfoStr string `json:"hashinfo"` HashInfo map[*utils.HashType]string `json:"hash_info"` }
type RecursiveMoveReq ¶
type RegexRenameReq ¶
type RemoveEmptyDirectoryReq ¶
type RemoveEmptyDirectoryReq struct {
SrcDir string `json:"src_dir"`
}
type SSHKeyAddReq ¶
type SearchResp ¶
type SearchResp struct { model.SearchNode Type int `json:"type"` }
type SetAria2Req ¶
type SetPikPakReq ¶
type SetPikPakReq struct {
TempDir string `json:"temp_dir" form:"temp_dir"`
}
type SetQbittorrentReq ¶
type SetThunderReq ¶
type SetThunderReq struct {
TempDir string `json:"temp_dir" form:"temp_dir"`
}
type SetTransmissionReq ¶
type StringOrArray ¶
type StringOrArray []string
func (*StringOrArray) UnmarshalJSON ¶
func (s *StringOrArray) UnmarshalJSON(data []byte) error
type TaskInfo ¶
type TaskInfo struct { ID string `json:"id"` Name string `json:"name"` Creator string `json:"creator"` CreatorRole int `json:"creator_role"` State tache.State `json:"state"` Status string `json:"status"` Progress float64 `json:"progress"` StartTime *time.Time `json:"start_time"` EndTime *time.Time `json:"end_time"` TotalBytes int64 `json:"total_bytes"` Error string `json:"error"` }
type UpdateIndexReq ¶
type Verify2FAReq ¶
Click to show internal directories.
Click to hide internal directories.