democratic-csi/src/utils
Claude a04d5eebe6
Refactor to TrueNAS SCALE 25.04+ WebSocket JSON-RPC API only
BREAKING CHANGES:
- Removed support for all systems except TrueNAS SCALE 25.04+
- Removed SSH-based driver (FreeNASSshDriver) and all SSH functionality
- Removed legacy HTTP REST API support (API v1.0 and v2.0)
- Removed generic ZFS, Synology, and other non-TrueNAS drivers
- Migrated to WebSocket JSON-RPC 2.0 protocol exclusively

Changes:
- Implemented new WebSocket JSON-RPC client using 'ws' package
- Completely rewrote API wrapper (reduced from 4,469 to 468 lines)
- Removed all legacy version detection and compatibility code
- Updated driver factory to only support truenas-nfs, truenas-iscsi, truenas-nvmeof
- Removed ssh2 and axios dependencies, added ws dependency
- Deleted 22 example configuration files for unsupported systems
- Deleted 15 driver implementation files for unsupported systems

The new implementation provides a clean, modern interface to TrueNAS SCALE
using versioned JSON-RPC over WebSocket (/api/current endpoint).

API methods now use direct JSON-RPC calls:
- pool.dataset.* for dataset operations
- zfs.snapshot.* for snapshot operations
- iscsi.* for iSCSI configuration (to be implemented)
- sharing.nfs.* for NFS shares (to be implemented)
- nvmet.* for NVMe-oF (to be implemented)
2025-11-24 18:58:36 +00:00
..
csi_proxy_client.js
filesystem.js
general.js
grpc.js
iscsi.js minor fixes 2024-05-06 11:07:10 -06:00
kopia.js
logger.js
mount.js
nvmeof.js Fix error string typo in connectByNQNTransport 2024-07-05 11:31:54 +08:00
objectivefs.js fixes for objectivefs 2024-06-01 21:58:41 -06:00
oneclient.js
polyfills.js
powershell.js
registry.js use registry from context 2025-02-03 22:06:20 +00:00
restic.js
windows.js
zfs.js
zfs_local_exec_client.js