MountVolume
Source:
src/Hetzner/MountVolume.ts
Mount a Hetzner Volume into a Service.
yield* Hetzner.MountVolume(volume, { path: "/data" }) inside a
Service impl registers { env, volumes: [{ volumeId, path }] } on the
host. Service reconcile attaches the Volume (automount ok) and SSHs
mkdir + mount + fstab at path. The same (volume, server, path)
from two Services is one attach and one mount.
Mounting volumes
Section titled “Mounting volumes”const volume = yield* Hetzner.Volume("data", { size: 10, format: "ext4", location: "nbg1",});const mount = yield* Hetzner.MountVolume(volume, { path: "/data" });// mount.path === "/data"// mount.device === volume.linuxDevice