Versions in this module Expand all Collapse all v0 v0.1.0 Jun 3, 2026 Changes in this version + func FilesTab(prefix string, opts ...FilesOption) plugin.Panel + func Routes(prefix, protocol string) []plugin.Route + type Chmodder interface + Chmod func(ctx context.Context, p string, mode fs.FileMode) error + type Client interface + Home func(ctx context.Context) (string, error) + Mkdir func(ctx context.Context, p string) error + Open func(ctx context.Context, p string) (io.ReadCloser, error) + ReadDir func(ctx context.Context, p string) ([]os.FileInfo, error) + Remove func(ctx context.Context, p string, isDir bool) error + Rename func(ctx context.Context, from, to string) error + Stat func(ctx context.Context, p string) (os.FileInfo, error) + Write func(ctx context.Context, p string, r io.Reader) error + type Copier interface + Copy func(ctx context.Context, src, dst string) error + type ErrorMapper interface + MapError func(error) error + type FileContent struct + Content string + Encoding string + MIME string + Path string + Size int64 + Truncated bool + type FileEntry struct + IsDir bool + MIME string + ModTime time.Time + Mode string + Name string + Path string + Size int64 + type FilePage struct + Items []FileEntry + NextCursor string + Path string + Total *int + type FilesOption func(*plugin.FileBrowserConfig) + func WithArchive(prefix string) FilesOption + func WithChmod(prefix string) FilesOption + func WithCopy(prefix string) FilesOption + func WithMove(prefix string) FilesOption + type Mover interface + Move func(ctx context.Context, src, dst string) error + type RangeOpener interface + OpenRange func(ctx context.Context, p string, offset, length int64) (io.ReadCloser, error) + type Seekable interface + OpenSeeker func(ctx context.Context, p string) (io.ReadSeekCloser, error) + type Session interface + Filesystem func() (Client, error)