Expand description
§use-docker-volume
Primitive Docker volume and mount syntax helpers for RustUse.
This crate parses and renders named volumes, bind mounts, anonymous volumes, and read-only flags. It keeps behavior simple and does not inspect the filesystem.
§Basic Usage
use use_docker_volume::{DockerVolumeMount, MountAccess, VolumeKind};
let mount: DockerVolumeMount = "cache:/var/cache:ro".parse()?;
assert_eq!(mount.kind(), VolumeKind::Named);
assert_eq!(mount.access(), MountAccess::ReadOnly);
assert_eq!(mount.target(), "/var/cache");Structs§
- Docker
Volume Mount - A Docker volume or bind mount specification.
Enums§
- Docker
Volume Error - Error returned when Docker volume syntax is invalid.
- Mount
Access - Volume mount access mode.
- Volume
Kind - Broad mount source classification.