Versions in this module Expand all Collapse all v3 v3.46.0 Jun 16, 2025 Changes in this version + const ADMIN + const DEPRECATED + const FTP + const GENERAL + const GLOBAL + const GUEST + const INDEX + const LDAP + const MaxInt + const MaxUint + const MinInt + const MinUint + const OFFLINE_DOWNLOAD + const PREVIEW + const PRIVATE + const PUBLIC + const READONLY + const S3 + const SINGLE + const SITE + const SSO + const STYLE + const StaticHashSalt + const TRAFFIC + func ExtractFolder(objs []Obj, extractFolder string) + func GetThumb(obj Obj) (thumb string, ok bool) + func GetUrl(obj Obj) (url string, ok bool) + func HashPwd(static string, salt string) string + func SortFiles(objs []Obj, orderBy, orderDirection string) + func StaticHash(password string) string + func TwoHashPwd(password string, salt string) string + func WrapObjsName(objs []Obj) + type ArchiveArgs struct + Password string + type ArchiveDecompressArgs struct + CacheFull bool + PutIntoNewDir bool + type ArchiveInnerArgs struct + InnerPath string + type ArchiveListArgs struct + Refresh bool + type ArchiveMeta interface + GetComment func() string + GetTree func() []ObjTree + IsEncrypted func() bool + type ArchiveMetaArgs struct + Refresh bool + type ArchiveMetaInfo struct + Comment string + Encrypted bool + Tree []ObjTree + func (m *ArchiveMetaInfo) GetComment() string + func (m *ArchiveMetaInfo) GetTree() []ObjTree + func (m *ArchiveMetaInfo) IsEncrypted() bool + type ArchiveMetaProvider struct + DriverProviding bool + Expiration *time.Duration + type File interface + func NewNopMFile(r NopMFileIF) File + type FileStreamer interface + CacheFullInTempFile func() (File, error) + GetExist func() Obj + GetFile func() File + GetMimetype func() string + IsForceStreamUpload func() bool + NeedStore func() bool + RangeRead func(http_range.Range) (io.Reader, error) + SetExist func(Obj) + SetTmpFile func(r *os.File) + type FsOtherArgs struct + Data interface{} + Method string + Path string + type IndexProgress struct + Error string + IsDone bool + LastDoneTime *time.Time + ObjCount uint64 + type Link struct + Concurrency int + Expiration *time.Duration + Header http.Header + IPCacheKey bool + MFile File + PartSize int + RangeReadCloser RangeReadCloserIF + URL string + type LinkArgs struct + Header http.Header + HttpReq *http.Request + IP string + Redirect bool + Type string + type ListArgs struct + Refresh bool + ReqPath string + S3ShowPlaceholder bool + type Meta struct + HSub bool + Header string + HeaderSub bool + Hide string + ID uint + PSub bool + Password string + Path string + RSub bool + Readme string + WSub bool + Write bool + type NopMFile struct + func (NopMFile) Close() error + type NopMFileIF interface + type Obj interface + CreateTime func() time.Time + GetHash func() utils.HashInfo + GetID func() string + GetName func() string + GetPath func() string + GetSize func() int64 + IsDir func() bool + ModTime func() time.Time + func UnwrapObj(obj Obj) Obj + func WrapObjName(objs Obj) Obj + type ObjMerge struct + func NewObjMerge() *ObjMerge + func (om *ObjMerge) InitHideReg(hides string) + func (om *ObjMerge) Merge(objs []Obj, objs_ ...Obj) []Obj + func (om *ObjMerge) Reset() + type ObjThumb struct + type ObjThumbURL struct + type ObjTree interface + GetChildren func() []ObjTree + type ObjUnwrap interface + Unwrap func() Obj + type ObjWrapName struct + Name string + func (o *ObjWrapName) GetName() string + func (o *ObjWrapName) Unwrap() Obj + type Object struct + Ctime time.Time + HashInfo utils.HashInfo + ID string + IsFolder bool + Modified time.Time + Name string + Path string + Size int64 + func GetRawObject(obj Obj) *Object + func (o *Object) CreateTime() time.Time + func (o *Object) GetHash() utils.HashInfo + func (o *Object) GetID() string + func (o *Object) GetName() string + func (o *Object) GetPath() string + func (o *Object) GetSize() int64 + func (o *Object) IsDir() bool + func (o *Object) ModTime() time.Time + func (o *Object) SetPath(path string) + type ObjectTree struct + Children []ObjTree + func (t *ObjectTree) GetChildren() []ObjTree + type ObjectURL struct + type OtherArgs struct + Data interface{} + Method string + Obj Obj + type PageReq struct + Page int + PerPage int + func (p *PageReq) Validate() + type Proxy struct + DownProxyUrl string + ProxyRange bool + WebProxy bool + WebdavPolicy string + func (p Proxy) Webdav302() bool + func (p Proxy) WebdavNative() bool + func (p Proxy) WebdavProxy() bool + type RangeReadCloser struct + RangeReader RangeReaderFunc + func (r *RangeReadCloser) RangeRead(ctx context.Context, httpRange http_range.Range) (io.ReadCloser, error) + type RangeReadCloserIF interface + RangeRead func(ctx context.Context, httpRange http_range.Range) (io.ReadCloser, error) + type RangeReaderFunc func(ctx context.Context, httpRange http_range.Range) (io.ReadCloser, error) + type SSHPublicKey struct + AddedTime time.Time + Fingerprint string + ID uint + KeyStr string + LastUsedTime time.Time + Title string + UserId uint + func (k *SSHPublicKey) GetKey() (ssh.PublicKey, error) + func (k *SSHPublicKey) UpdateLastUsedTime() + type SearchNode struct + IsDir bool + Name string + Parent string + Size int64 + func (s *SearchNode) Type() string + type SearchReq struct + Keywords string + Parent string + Scope int + func (p *SearchReq) Validate() error + type SetPath interface + SetPath func(path string) + type SettingItem struct + Flag int + Group int + Help string + Index uint + Key string + Options string + PreDefault string + Type string + Value string + func (s SettingItem) IsDeprecated() bool + type Sort struct + ExtractFolder string + OrderBy string + OrderDirection string + type Storage struct + Addition string + CacheExpiration int + DisableIndex bool + Disabled bool + Driver string + EnableSign bool + ID uint + Modified time.Time + MountPath string + Order int + Remark string + Status string + func (s *Storage) GetStorage() *Storage + func (s *Storage) SetStatus(status string) + func (s *Storage) SetStorage(storage Storage) + type TaskItem struct + Key string + PersistData string + type Thumb interface + Thumb func() string + type Thumbnail struct + Thumbnail string + func (t Thumbnail) Thumb() string + type URL interface + URL func() string + type UpdateProgress func(percentage float64) + type Url struct + Url string + func (w Url) URL() string + type User struct + Authn string + BasePath string + Disabled bool + ID uint + OtpSecret string + Password string + Permission int32 + PwdHash string + PwdTS int64 + Role int + Salt string + SsoID string + Username string + func (u *User) CanAccessWithoutPassword() bool + func (u *User) CanAddOfflineDownloadTasks() bool + func (u *User) CanCopy() bool + func (u *User) CanDecompress() bool + func (u *User) CanFTPAccess() bool + func (u *User) CanFTPManage() bool + func (u *User) CanMove() bool + func (u *User) CanReadArchives() bool + func (u *User) CanRemove() bool + func (u *User) CanRename() bool + func (u *User) CanSeeHides() bool + func (u *User) CanWebdavManage() bool + func (u *User) CanWebdavRead() bool + func (u *User) CanWrite() bool + func (u *User) IsAdmin() bool + func (u *User) IsGuest() bool + func (u *User) JoinPath(reqPath string) (string, error) + func (u *User) SetPassword(pwd string) *User + func (u *User) ValidatePwdStaticHash(pwdStaticHash string) error + func (u *User) ValidateRawPassword(password string) error + func (u *User) WebAuthnCredentials() []webauthn.Credential + func (u *User) WebAuthnDisplayName() string + func (u *User) WebAuthnID() []byte + func (u *User) WebAuthnIcon() string + func (u *User) WebAuthnName() string