PathMapping contains the Compose service and modified host system path.
| 20 | |
| 21 | // PathMapping contains the Compose service and modified host system path. |
| 22 | type PathMapping struct { |
| 23 | // HostPath that was created/modified/deleted outside the container. |
| 24 | // |
| 25 | // This is the path as seen from the user's perspective, e.g. |
| 26 | // - C:\Users\moby\Documents\hello-world\main.go (file on Windows) |
| 27 | // - /Users/moby/Documents/hello-world (directory on macOS) |
| 28 | HostPath string |
| 29 | // ContainerPath for the target file inside the container (only populated |
| 30 | // for sync events, not rebuild). |
| 31 | // |
| 32 | // This is the path as used in Docker CLI commands, e.g. |
| 33 | // - /workdir/main.go |
| 34 | // - /workdir/subdir |
| 35 | ContainerPath string |
| 36 | } |
| 37 | |
| 38 | type Syncer interface { |
| 39 | Sync(ctx context.Context, service string, paths []*PathMapping) error |
nothing calls this directly
no outgoing calls
no test coverage detected