internal/

directory
v0.0.0-...-4937edb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2026 License: AGPL-3.0

Directories

Path Synopsis
files
archive
Package archive implements the wire side of the per-user files-backend's `/api/archive/<node>/` surface, which powers `olares-cli files compress` / `extract` / `archive entries` / `archive cat`.
Package archive implements the wire side of the per-user files-backend's `/api/archive/<node>/` surface, which powers `olares-cli files compress` / `extract` / `archive entries` / `archive cat`.
cp
Package cp implements the wire side of `olares-cli files cp` and `olares-cli files mv`.
Package cp implements the wire side of `olares-cli files cp` and `olares-cli files mv`.
download
Package download implements the per-file and recursive directory download path for `olares-cli files download` and `files cat`.
Package download implements the per-file and recursive directory download path for `olares-cli files download` and `files cat`.
edit
Package edit implements the wire side of `olares-cli files edit`, hitting the per-user files-backend's in-place file-write endpoint:
Package edit implements the wire side of `olares-cli files edit`, hitting the per-user files-backend's in-place file-write endpoint:
encodepath
Package encodepath implements percent-encoding for Olares files-backend wire paths so the CLI matches the LarePass web client (apps/packages/app/src/utils/encode.ts: encodeUrl / encodeURIComponent).
Package encodepath implements percent-encoding for Olares files-backend wire paths so the CLI matches the LarePass web client (apps/packages/app/src/utils/encode.ts: encodeUrl / encodeURIComponent).
mkdir
Package mkdir implements the wire side of `olares-cli files mkdir`, hitting the per-user files-backend's "create directory" endpoint:
Package mkdir implements the wire side of `olares-cli files mkdir`, hitting the per-user files-backend's "create directory" endpoint:
permission
Package permission implements the wire side of `olares-cli files chown`, which talks to the per-user files-backend's `/api/permission/...` surface to read and update the POSIX owner UID of a file or directory.
Package permission implements the wire side of `olares-cli files chown`, which talks to the per-user files-backend's `/api/permission/...` surface to read and update the POSIX owner UID of a file or directory.
rename
Package rename implements the wire side of `olares-cli files rename`, hitting the per-user files-backend's in-place rename endpoint:
Package rename implements the wire side of `olares-cli files rename`, hitting the per-user files-backend's in-place rename endpoint:
repos
Package repos implements the wire side of `olares-cli files repos`, the listing of Sync (Seafile / Seahub) repositories under the user's account.
Package repos implements the wire side of `olares-cli files repos`, the listing of Sync (Seafile / Seahub) repositories under the user's account.
rm
Package rm implements the wire side of `olares-cli files rm`.
Package rm implements the wire side of `olares-cli files rm`.
share
Package share implements the wire side of `olares-cli files share`, covering the three folder-sharing surfaces the LarePass web app exposes: Internal (in-Olares cross-user shares), Public (external links with optional password / expiration / upload-only), and SMB (Samba network shares).
Package share implements the wire side of `olares-cli files share`, covering the three folder-sharing surfaces the LarePass web app exposes: Internal (in-Olares cross-user shares), Public (external links with optional password / expiration / upload-only), and SMB (Samba network shares).
smbmount
Package smbmount implements the wire side of `olares-cli files smb` AND `olares-cli files nfs` — the CLI counterpart of the LarePass web app's "Connect to Server" flow for mounting an external SMB share or NFS export into the per-user files-backend's `external/<node>/...` namespace.
Package smbmount implements the wire side of `olares-cli files smb` AND `olares-cli files nfs` — the CLI counterpart of the LarePass web app's "Connect to Server" flow for mounting an external SMB share or NFS export into the per-user files-backend's `external/<node>/...` namespace.
upload
api.go: thin HTTP client for the per-user files-backend's Drive v2 upload-related endpoints.
api.go: thin HTTP client for the per-user files-backend's Drive v2 upload-related endpoints.
Package keychain provides cross-platform secure storage for olares-cli secrets (currently used for the per-olaresId access/refresh token grants written by the `profile login` and `profile import` commands).
Package keychain provides cross-platform secure storage for olares-cli secrets (currently used for the per-olaresId access/refresh token grants written by the `profile login` and `profile import` commands).
keychainfake
Package keychainfake provides a process-local KeychainAccess implementation for tests.
Package keychainfake provides a process-local KeychainAccess implementation for tests.
Package lockfile is a tiny wrapper over github.com/gofrs/flock that adds context-cancelable acquisition and a single deterministic lock-directory layout under cliconfig.Home().
Package lockfile is a tiny wrapper over github.com/gofrs/flock that adds context-cancelable acquisition and a single deterministic lock-directory layout under cliconfig.Home().

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL