Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
lsusb
command
|
|
|
provisioning
command
Command provisioning mints single-use Headscale pre-auth keys for quarks that POST /provision with the shared secret (#1876).
|
Command provisioning mints single-use Headscale pre-auth keys for quarks that POST /provision with the shared secret (#1876). |
|
quark
command
|
|
|
docs
|
|
|
swagger
Package swagger Code generated by swaggo/swag.
|
Package swagger Code generated by swaggo/swag. |
|
internal
|
|
|
db/dbtest
Package dbtest opens a real Quark database for a test.
|
Package dbtest opens a real Quark database for a test. |
|
server/api/v0/trash
Package v0_trash serves /api/v0/trash: listing a device's trash, restoring items to where they were deleted from, and deleting them for good.
|
Package v0_trash serves /api/v0/trash: listing a device's trash, restoring items to where they were deleted from, and deleting them for good. |
|
pkg
|
|
|
backup
Package backup snapshots the vault and managed-device files onto a target device, keeps them in sync as files change, and verifies restores.
|
Package backup snapshots the vault and managed-device files onto a target device, keeps them in sync as files change, and verifies restores. |
|
calendar
Package calendar provides calendar utilities for date/month/weekday operations.
|
Package calendar provides calendar utilities for date/month/weekday operations. |
|
util/accessutil
Package accessutil answers who may reach a path (#1902).
|
Package accessutil answers who may reach a path (#1902). |
|
util/albumutil
Package albumutil holds the photo album writes that carry naming rules: an album name cannot contain '/', and it is unique among its siblings ignoring case.
|
Package albumutil holds the photo album writes that carry naming rules: an album name cannot contain '/', and it is unique among its siblings ignoring case. |
|
util/authutil
Package authutil handles authentication: password hashing, recovery phrases, first-boot setup, login, session issue and validation, account status, and admin role management.
|
Package authutil handles authentication: password hashing, recovery phrases, first-boot setup, login, session issue and validation, account status, and admin role management. |
|
util/bookutil
Package bookutil finds book files (PDF and EPUB) on disk.
|
Package bookutil finds book files (PDF and EPUB) on disk. |
|
util/deputil
Package deputil carries the server's dependency graph: the Dependencies interface every layer is handed, and the constructors that build it either empty (for tests) or wired to the real database, storage, and VFS.
|
Package deputil carries the server's dependency graph: the Dependencies interface every layer is handed, and the constructors that build it either empty (for tests) or wired to the real database, storage, and VFS. |
|
util/deviceutil
Package deviceutil holds the services behind /api/v0/storage/devices: the mount and unmount of a USB storage device, the display name and role the database keeps for each device, and the status list that overlays the two onto what the detector reports.
|
Package deviceutil holds the services behind /api/v0/storage/devices: the mount and unmount of a USB storage device, the display name and role the database keeps for each device, and the status list that overlays the two onto what the detector reports. |
|
util/ffmpegutil
Package ffmpegutil wraps video inspection, thumbnails, and trimming behind the VideoProcessor interface, with CLIProcessor as the ffmpeg/ffprobe-backed implementation.
|
Package ffmpegutil wraps video inspection, thumbnails, and trimming behind the VideoProcessor interface, with CLIProcessor as the ffmpeg/ffprobe-backed implementation. |
|
util/fileutil
Package fileutil holds the services behind /api/v0/files: the listings the file browser pages through, the archive views that read only headers, the download pipeline that zips a folder or re-encodes an image on its way out, and the mutations (delete, move, new folder) the browser sends back.
|
Package fileutil holds the services behind /api/v0/files: the listings the file browser pages through, the archive views that read only headers, the download pipeline that zips a folder or re-encodes an image on its way out, and the mutations (delete, move, new folder) the browser sends back. |
|
util/githubutil
Package githubutil fetches release metadata from the GitHub REST API.
|
Package githubutil fetches release metadata from the GitHub REST API. |
|
util/grouputil
Package grouputil manages the groups admins put accounts in (#1910).
|
Package grouputil manages the groups admins put accounts in (#1910). |
|
util/healthutil
Package healthutil provides gopsutil-based host hardware health metrics.
|
Package healthutil provides gopsutil-based host hardware health metrics. |
|
util/iosemutil
Package iosemutil provides a shared IO concurrency semaphore to prevent disk thrashing under concurrent load — particularly on spinning hard drives where random-access seeks collapse throughput when too many goroutines compete.
|
Package iosemutil provides a shared IO concurrency semaphore to prevent disk thrashing under concurrent load — particularly on spinning hard drives where random-access seeks collapse throughput when too many goroutines compete. |
|
util/jobutil
Package jobutil runs background jobs.
|
Package jobutil runs background jobs. |
|
util/photoutil
Package photoutil reads, transforms, and thumbnails photo and video files: discovering photos on disk, extracting EXIF metadata, correcting orientation, converting camera RAW, generating thumbnails, and comparing images by perceptual hash.
|
Package photoutil reads, transforms, and thumbnails photo and video files: discovering photos on disk, extracting EXIF metadata, correcting orientation, converting camera RAW, generating thumbnails, and comparing images by perceptual hash. |
|
util/provisionutil
Package provisionutil asks the provisioning service (cmd/provisioning) for a Headscale pre-auth key, so enabling remote access never needs a key from the user (#1876).
|
Package provisionutil asks the provisioning service (cmd/provisioning) for a Headscale pre-auth key, so enabling remote access never needs a key from the user (#1876). |
|
util/ratelimitutil
Package ratelimitutil provides a per-IP token-bucket rate limiter for protecting sensitive endpoints (e.g.
|
Package ratelimitutil provides a per-IP token-bucket rate limiter for protecting sensitive endpoints (e.g. |
|
util/remoteutil
Package remoteutil runs an embedded Tailscale node and reverse-proxies tailnet traffic to the local quark server.
|
Package remoteutil runs an embedded Tailscale node and reverse-proxies tailnet traffic to the local quark server. |
|
util/searchutil
Package searchutil provides text extraction and full-text search over indexed file contents using SQLite FTS5.
|
Package searchutil provides text extraction and full-text search over indexed file contents using SQLite FTS5. |
|
util/serverutil
Package serverutil holds the HTTP building blocks the server layer is assembled from: the Response envelope handlers return, the Route/Router registration types that wire handlers onto gin, the HttpError type that lets a service function name its own status code, and the ports the server binds.
|
Package serverutil holds the HTTP building blocks the server layer is assembled from: the Response envelope handlers return, the Route/Router registration types that wire handlers onto gin, the HttpError type that lets a service function name its own status code, and the ports the server binds. |
|
util/sshutil
Package sshutil lets an admin turn SSH access to the Quark on and off, and manage how the quark login account signs in: public keys and an optional password (#2131).
|
Package sshutil lets an admin turn SSH access to the Quark on and off, and manage how the quark login account signs in: public keys and an optional password (#2131). |
|
util/thumbnailutil
Package thumbnailutil generates and caches image and video thumbnails on disk.
|
Package thumbnailutil generates and caches image and video thumbnails on disk. |
|
util/tlsutil
Package tlsutil provides helpers for provisioning self-signed TLS certificates used by the Quark server when running in production (HTTPS) mode.
|
Package tlsutil provides helpers for provisioning self-signed TLS certificates used by the Quark server when running in production (HTTPS) mode. |
|
util/transcodeutil
Package transcodeutil is the video-transcode job kind: Enqueue validates and queues a conversion into any video format, and the Handler from NewHandler writes the result into a new file beside the source when the job runs.
|
Package transcodeutil is the video-transcode job kind: Enqueue validates and queues a conversion into any video format, and the Handler from NewHandler writes the result into a new file beside the source when the job runs. |
|
util/updateutil
Package updateutil discovers, downloads, and installs quark releases from GitHub and Azure Blob Storage.
|
Package updateutil discovers, downloads, and installs quark releases from GitHub and Azure Blob Storage. |
|
util/uploadutil
Package uploadutil owns the server side of file uploads: where a finished upload lands, and the resumable chunked sessions that feed it (#1629).
|
Package uploadutil owns the server side of file uploads: where a finished upload lands, and the resumable chunked sessions that feed it (#1629). |
|
util/vaultcrypto
Package vaultcrypto derives vault keys with Argon2id, encrypts vault data with AES-256-GCM, and holds the derived key in an auto-locking session.
|
Package vaultcrypto derives vault keys with Argon2id, encrypts vault data with AES-256-GCM, and holds the derived key in an auto-locking session. |
|
util/vaultutil
Package vaultutil holds the password vault's business logic: entry and folder CRUD over the encrypted store, master-password setup, unlock and rotation, the importer for CSV/JSON exports from other password managers, the plaintext exporter, password generation, and moving the whole vault to another device.
|
Package vaultutil holds the password vault's business logic: entry and folder CRUD over the encrypted store, master-password setup, unlock and rotation, the importer for CSV/JSON exports from other password managers, the plaintext exporter, password generation, and moving the whole vault to another device. |
|
util/versionutil
Package versionutil reports and compares the build version of the binary.
|
Package versionutil reports and compares the build version of the binary. |
|
util/videoutil
Package videoutil provides a thin wrapper around ffmpeg and ffprobe for video probing, frame extraction, trimming, and transcoding.
|
Package videoutil provides a thin wrapper around ffmpeg and ffprobe for video probing, frame extraction, trimming, and transcoding. |
|
util/xlsxutil
Package xlsxutil reads an OOXML spreadsheet (.xlsx / .xlsm) and rewrites it as the .qsheet JSON envelope Quark's Sheets editor already understands:
|
Package xlsxutil reads an OOXML spreadsheet (.xlsx / .xlsm) and rewrites it as the .qsheet JSON envelope Quark's Sheets editor already understands: |
|
vfs
Package vfs provides the virtual filesystem layer: a common file interface over local disk, in-memory, database-backed and storage-service namespaces, a registry that maps namespaces to implementations, and per-path metadata.
|
Package vfs provides the virtual filesystem layer: a common file interface over local disk, in-memory, database-backed and storage-service namespaces, a registry that maps namespaces to implementations, and per-path metadata. |
Click to show internal directories.
Click to hide internal directories.