MCPcopy Create free account

hub / github.com/gtsteffaniak/filebrowser / functions

Functions1,657 in github.com/gtsteffaniak/filebrowser

↓ 1 callersFunctionvalidateShareInfo
validateShareInfo migrates share links to add default sidebar links
backend/cmd/share.go:9
↓ 1 callersFunctionvalidateUserInfo
(newDB bool)
backend/cmd/user.go:17
↓ 1 callersFunctionverifyPragmaSettings
verifyPragmaSettings reads back PRAGMA values to verify they were applied correctly
backend/database/sql/sqlite.go:437
↓ 1 callersFunctionwithAuthRateLimitAuthenticated
(fn handleFunc)
backend/http/auth_ratelimit.go:262
↓ 1 callersFunctionwithAuthRateLimitModerate
(fn handleFunc)
backend/http/auth_ratelimit.go:250
↓ 1 callersFunctionwithAuthRateLimitOIDC
(fn handleFunc)
backend/http/auth_ratelimit.go:256
↓ 1 callersFunctionwithBasicAuth
withBasicAuth returns an http.HandlerFunc for use with router.Handle. It extracts Basic Auth credentials and uses the password as a JWT token to authe
backend/http/middleware.go:602
↓ 1 callersFunctionwithBasicAuthHelper
withBasicAuthHelper extracts Basic Auth credentials and uses the password as a JWT token to authenticate the user. The username is ignored, and the pa
backend/http/middleware.go:588
↓ 1 callersFunctionwithPermShareHelper
(fn handleFunc)
backend/http/middleware.go:577
↓ 1 callersFunctionwithSelfOrAdminHelper
Middleware to ensure the user is either the requested user or an admin
backend/http/middleware.go:509
↓ 1 callersFunctionwithTimeoutHelper
withTimeoutHelper adds a configurable timeout context to any operation
backend/http/middleware.go:639
↓ 1 callersFunctionwithoutUserHelper
(fn handleFunc)
backend/http/middleware.go:276
↓ 1 callersFunctionwrapHandlerBasicAuth
wrapHandlerBasicAuth wraps a handler and automatically sets WWW-Authenticate header for 401 Unauthorized responses, triggering Basic Auth challenge
backend/http/middleware.go:564
MethodAddApiToken
(userID uint, name string, tokenString string, metadata AuthToken)
backend/database/users/storage.go:117
MethodAddApiToken
AddHashedToken adds a token hash to user ID mapping.
backend/database/access/access.go:1285
FunctionAddTrailingSlashIfNotExists
NormalizeRulePath ensures directory paths have trailing slashes for consistent rule storage
backend/common/utils/main.go:132
FunctionAdminPerms
()
backend/common/settings/settings.go:58
MethodAll
()
backend/database/storage/bolt/share.go:18
MethodAll
()
backend/database/storage/bolt/indexing.go:15
MethodAll
()
backend/database/dbindex/storage.go:12
MethodAuth
Auth authenticates the user via an HTTP header.
backend/auth/proxy.go:20
MethodAuth
Auth authenticates the user via an external JWT token. The token is verified using the configured secret and algorithm.
backend/auth/jwt.go:40
MethodAuth
Auth uses authenticates user 1.
backend/auth/none.go:16
MethodAuth
Auth authenticates the user via a json in content body.
backend/auth/json.go:23
FunctionBenchmarkFillIndex
(b *testing.B)
backend/indexing/indexing_test.go:12
FunctionBenchmarkGetOrientationFilter
Benchmark the orientation filter generation
backend/ffmpeg/image_test.go:156
FunctionBenchmarkNormalizeArchiveEntryName
Benchmarks (optional, keep small)
backend/http/archive_test.go:283
FunctionBenchmarkSearchAllIndexes
(b *testing.B)
backend/indexing/search_test.go:51
FunctionBenchmarkVideoPreviewSetup
(b *testing.B)
backend/common/settings/video_preview_test.go:250
FunctionBuildNode
BuildNode constructs a yaml.Node for any Go value, injecting comments on struct fields.
backend/common/settings/generator.go:512
FunctionBuildSearchOptionsFromQuery
BuildSearchOptionsFromQuery merges optional repeated literal terms (HTTP "terms" parameters) with structured filter text ("query" prefix). When termVa
backend/indexing/iteminfo/searchQuery.go:27
FunctionBulkInsertFilesForDuplicates
BulkInsertFilesForDuplicates inserts multiple files in a single transaction. This is more efficient than calling InsertFileForDuplicates multiple time
backend/database/sql/duplicates.go:115
FunctionCSPNonce
CSPNonce returns a base64-encoded random value suitable for Content-Security-Policy nonces and matching HTML nonce="" attributes (cryptographically ra
backend/common/utils/crypto.go:68
FunctionCanConvertImage
(ext string)
backend/ffmpeg/conditions.go:5
FunctionCanConvertImage
(ext string)
backend/common/settings/configFunctions.go:3
FunctionCanConvertVideo
(ext string)
backend/ffmpeg/conditions.go:16
FunctionCanConvertVideo
(ext string)
backend/common/settings/configFunctions.go:14
FunctionCanEditOnlyOffice
(modify bool, extention string)
backend/indexing/iteminfo/conditions.go:503
FunctionCheckErr
(source string, err error)
backend/common/utils/main.go:17
FunctionCheckPathExists
(realPath string)
backend/common/utils/main.go:144
FunctionCheckPwd
CheckPwd checks if a password is correct.
backend/common/utils/crypto.go:39
FunctionCheckWindowsHidden
(realpath string)
backend/indexing/windows.go:12
FunctionClamp
Clamp returns value clamped between min and max. If value < min, returns min. If value > max, returns max. Otherwise, returns value.
backend/common/utils/main.go:121
FunctionCleanUsername
(s string)
backend/database/users/users.go:187
FunctionClearCache
ClearCache clears the access cache (useful for testing)
backend/database/access/access.go:171
FunctionClearCacheDir
(cacheDir string)
backend/adapters/fs/fileutils/file.go:228
FunctionClearDirectoryContents
ClearDirectoryContents removes all files and subdirectories inside dir; dir itself remains. If dir does not exist, returns nil.
backend/adapters/fs/fileutils/file.go:246
FunctionClearTestIndices
ClearTestIndices removes all test indices - call in test cleanup
backend/indexing/test_helpers.go:26
FunctionCollectComments
CollectComments parses all Go source in the directory of srcPath and returns CommentsMap.
backend/common/settings/generator.go:37
FunctionConvertPermissionsToUsers
ConvertPermissionsToUsers converts UserDefaultsPermissions to users.Permissions
backend/common/settings/settings.go:24
FunctionCopyHelper
Copy copies a file or folder from one place to another.
backend/adapters/fs/fileutils/copy.go:9
FunctionCopyResource
(isSrcDir bool, sourceIndex, destIndex, realsrc, realdst string)
backend/adapters/fs/files/files.go:790
MethodCreateDuplicatesTable
CreateDuplicatesTable creates the files table and indexes needed for duplicate detection. This should be called once after creating a TempDB for dupli
backend/database/sql/duplicates.go:22
FunctionCreateMockData
(numDirs, numFilesPerDir int)
backend/indexing/mock.go:37
FunctionCreateThumbnail
CreateThumbnail decodes an image and creates a fixed-size thumbnail.
backend/preview/image.go:395
FunctionCreateUser
create new user
backend/database/storage/storage.go:107
FunctionCredentialFromLibrary
CredentialFromLibrary converts a library Credential to our BoltDB-safe format.
backend/database/users/webauthn.go:84
MethodDB
DB returns the underlying *sql.DB connection. This allows callers to execute custom SQL queries if needed.
backend/database/sql/sqlite.go:376
FunctionDebouncedBroadcast
(eventType, message string)
backend/events/eventRouter.go:128
FunctionDelThumbs
(ctx context.Context, file iteminfo.ExtendedFileInfo)
backend/preview/preview.go:641
MethodDelete
Delete allows you to delete a user by its name or username. The provided id must be a string for username lookup or a uint for id lookup. If id is nei
backend/database/users/storage.go:162
MethodDelete
(path string)
backend/database/storage/bolt/indexing.go:48
MethodDelete
(path string)
backend/database/dbindex/storage.go:16
MethodDelete
Delete wraps StorageBackend.Delete
backend/database/dbindex/storage.go:142
MethodDelete
Delete wraps StorageBackend.Delete
backend/database/share/storage.go:392
MethodDelete
(id any)
backend/database/crud/crud.go:32
MethodDelete
(ctx context.Context, key string)
backend/adapters/fs/diskcache/noop_cache.go:22
MethodDeleteApiToken
(userID uint, name string)
backend/database/users/storage.go:136
MethodDeleteByID
(id any)
backend/database/users/storage.go:56
MethodDeleteByID
(id uint)
backend/database/storage/bolt/users.go:211
MethodDeleteByID
(id any)
backend/database/dbindex/storage.go:40
MethodDeleteByID
(id any)
backend/database/share/storage.go:49
MethodDeleteByID
(id uint)
backend/auth/json_timing_test.go:87
MethodDeleteByUsername
(username string)
backend/database/storage/bolt/users.go:215
MethodDeleteByUsername
(username string)
backend/auth/json_timing_test.go:96
FunctionDetectAllSubtitles
DetectAllSubtitles finds both embedded and external subtitle tracks
backend/ffmpeg/subtitles.go:29
FunctionDetectEmbeddedSubtitles
DetectEmbeddedSubtitles detects embedded subtitle streams using ffprobe. This is the public API that can be called from other packages. Returns empty
backend/ffmpeg/subtitles.go:56
FunctionEffectiveDirPerm
EffectiveDirPerm returns [PermDir] if [SetFsPermissions] was called, otherwise 0o755. On Unix, [os.Mkdir] with perm 0 fails with permission denied, so
backend/adapters/fs/fileutils/file.go:27
FunctionEffectiveFilePerm
EffectiveFilePerm returns [PermFile] if set, otherwise 0o644.
backend/adapters/fs/fileutils/file.go:35
MethodExplainQueryPlan
ExplainQueryPlan analyzes a query and returns the execution plan as a string. This is useful for debugging and optimizing queries to reduce page cache
backend/database/sql/index.go:584
FunctionExtractGroupsFromClaims
ExtractGroupsFromClaims extracts groups from JWT claims based on the configured groups claim field
backend/auth/jwt.go:199
FunctionExtractSubtitleContent
ExtractSubtitleContent extracts subtitle content without service management
backend/ffmpeg/subtitles.go:163
FunctionFileInfoFaster
(opts utils.FileOptions, access *access.Storage, user *users.User, share *share.Storage)
backend/adapters/fs/files/files.go:226
MethodFindByUserID
(id uint)
backend/database/storage/bolt/share.go:28
MethodFindByUserID
FindByUserID returns non-expired shares for the user from the cache.
backend/database/share/storage.go:205
MethodFlush
Flush persists the current in-memory state to the backing store. Call during graceful shutdown to ensure DB matches memory.
backend/database/access/access.go:106
MethodFlush
Flush persists the current in-memory state of all indexes to the backing store. Call during graceful shutdown to ensure DB matches memory.
backend/database/dbindex/storage.go:154
MethodFlush
Flush is a no-op: every share write (Save, Delete, UpdateShares, UpdateSharePath) already updates the database, so the cache and DB stay in sync witho
backend/database/share/storage.go:402
MethodFlush
Flush persists all index information to the database
backend/indexing/indexingFiles.go:1656
FunctionGenerateConfigYamlWithEmbedded
GenerateConfigYamlWithEmbedded generates YAML from a given config using embedded YAML content as comment source
backend/common/settings/generator.go:927
MethodGenerateImageFromDoc
(ctx context.Context, file iteminfo.ExtendedFileInfo, tempFilePath string, pageNumber int)
backend/preview/docDefault.go:17
FunctionGenerateKey
()
backend/common/utils/crypto.go:57
FunctionGenerateKey
GenerateKey generates a key of 512 bits.
backend/common/settings/settings.go:43
FunctionGenerateOtpForUser
(user *users.User, userStore *users.Storage)
backend/auth/totp.go:54
FunctionGeneratePWAIcons
GeneratePWAIcons generates all PWA and platform icon sizes from favicon source All icons are generated as PNG for maximum compatibility (Apple devices
backend/icons/generator.go:231
FunctionGeneratePreview
(ctx context.Context, file iteminfo.ExtendedFileInfo, previewSize, officeUrl string, seekPercentage int)
backend/preview/preview.go:549
FunctionGenerateRandomPath
(levels int)
backend/common/utils/mocks.go:9
FunctionGenerateRandomSearchTerms
(numTerms int)
backend/common/utils/mocks.go:39
FunctionGenerateYaml
()
backend/common/settings/generator.go:864
MethodGet
(t string)
backend/database/storage/bolt/auth.go:13
← previousnext →901–1,000 of 1,657, ranked by callers