@xemahq/storage-driver-hostpath
v0.1.1
Published
Dev-only host-path StorageDriver — pool = host directory, subPath = relative dir. Works under both k8s (hostPath volume) and docker (bind mount). Phase A.3 of xema-os-plan §workspace.
Readme
@xemahq/storage-driver-hostpath
Dev-only host-directory storage driver
Overview
A development-only implementation of the workspace storage-driver contract backed by a host directory. A storage pool maps onto a directory and per-allocation isolation is a subdirectory; it works under both Kubernetes host-path volumes and Docker bind mounts via the matched scheduler. It has no isolation, quota, or snapshot support and is not for production use.
When to use it
- Use it for local development on machines without a full Kubernetes cluster.
Installation
pnpm add @xemahq/storage-driver-hostpathUsage
import {
createHostPathStorageDriver,
HostPathRuntimeKind,
} from '@xemahq/storage-driver-hostpath';
const driver = createHostPathStorageDriver({
baseDir: '/var/lib/xema/storage',
runtimeKind: HostPathRuntimeKind.Docker,
});License
Apache-2.0 © Xema — xema.dev
