MCPcopy Create free account
hub / github.com/docker/compose / PathMapping

Struct PathMapping

internal/sync/shared.go:22–36  ·  view source on GitHub ↗

PathMapping contains the Compose service and modified host system path.

Source from the content-addressed store, hash-verified

20
21// PathMapping contains the Compose service and modified host system path.
22type 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
38type Syncer interface {
39 Sync(ctx context.Context, service string, paths []*PathMapping) error

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected