cli/internal
Michael Tews 9e08776681
refactor(cli/compose/loader): extract ParseVolume() to its own package
Moves ParseVolume() to a new internal package to remove the dependency
on cli/compose/loader in cli/command/container/opts.go

refactor to keep types isolated

- rename the package to "volumespec" to reuse the name of the package
  as part of the name (parsevolume.ParseVolume() -> volumespec.Parse())
- move the related compose types to the internal package as well,
  and rename them to be more generic (not associated with "compose");
  - ServiceVolumeConfig -> VolumeConfig
  - ServiceVolumeBind -> BindOpts
  - ServiceVolumeVolume -> VolumeOpts
  - ServiceVolumeImage -> ImageOpts
  - ServiceVolumeTmpfs -> TmpFsOpts
  - ServiceVolumeCluster -> ClusterOpts
- alias the internal types inside cli/compose/types to keep backward
  compatibility (for any external consumers); even though the implementation
  is internal, Go allows aliasing types to use them externally.

Signed-off-by: Michael Tews <michael@tews.dev>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit ef7fd8bb67)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-20 16:52:12 +02:00
..
jsonstream cli/internal/jsonstream: move to top-level "internal" 2025-05-06 20:04:21 +02:00
lazyregexp cli-plugins/manager: use lazyregexp to compile regexes on first use 2025-04-10 12:22:26 +02:00
logdetails cli/internal/logdetails: move to top-level "internal" 2025-05-06 20:04:25 +02:00
oauth add internal fork of docker/docker/registry 2025-08-15 15:45:47 +02:00
prompt internal/prompt: TestConfirm: don't use un-keyed structs 2025-04-11 12:23:24 +02:00
registry remove aliases for containerd/errdefs, disallow docker/errdefs 2025-08-16 18:29:23 +02:00
registryclient cli/registry/client: deprecate and move internal 2025-08-19 22:37:33 +02:00
test cli/registry/client: deprecate and move internal 2025-08-19 22:37:33 +02:00
tui tui/note: add warning note type 2025-07-08 14:07:22 +02:00
volumespec refactor(cli/compose/loader): extract ParseVolume() to its own package 2025-08-20 16:52:12 +02:00