MCPcopy Index your code
hub / github.com/devspace-sh/devspace / GetServiceSyncPaths

Function GetServiceSyncPaths

pkg/devspace/compose/volume.go:11–29  ·  view source on GitHub ↗
(
	project *composetypes.Project,
	service composetypes.ServiceConfig,
)

Source from the content-addressed store, hash-verified

9)
10
11func GetServiceSyncPaths(
12 project *composetypes.Project,
13 service composetypes.ServiceConfig,
14) []string {
15 syncPaths := []string{}
16 for _, volumeMount := range service.Volumes {
17 isProvisionedVolume := false
18 for _, volume := range project.Volumes {
19 if volumeMount.Source == volume.Name {
20 isProvisionedVolume = true
21 }
22 }
23
24 if !isProvisionedVolume {
25 syncPaths = append(syncPaths, volumeMount.Target)
26 }
27 }
28 return syncPaths
29}
30
31func volumesConfig(
32 service composetypes.ServiceConfig,

Callers 1

initDockerComposeMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected