mirror of
https://github.com/compose-spec/compose-go.git
synced 2026-11-24 20:00:00 +00:00
ShortSyntax renders a volume as `[SOURCE:]TARGET[:OPTIONS]` when some spelling of it parses back as the very same volume, and IsShortSyntaxExpressible reports it. A volume the short syntax has no place for (tmpfs, image, subpath, labels, consistency, extensions, a bind that doesn't create its host path or is recursive...) or would read otherwise (a colon in a path, a bind source that is not a path, a one letter volume name read as a drive) is not expressible, and can only be written in the long syntax. It lets an implementation decide, without guessing from each option, which volumes it can hand over as a plain string (the `Binds` of the Docker API) and which need more. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com> |
History
|
|
|---|---|---|
| .. | ||
| volume.go | ||
| volume_fuzz_test.go | ||
| volume_short.go | ||
| volume_short_test.go | ||
| volume_test.go | ||