MCPcopy
hub / github.com/docker/compose / checkForBindMount

Method checkForBindMount

pkg/compose/publish.go:671–685  ·  view source on GitHub ↗
(project *types.Project)

Source from the content-addressed store, hash-verified

669}
670
671func (s *composeService) checkForBindMount(project *types.Project) map[string][]types.ServiceVolumeConfig {
672 allFindings := map[string][]types.ServiceVolumeConfig{}
673 for serviceName, config := range project.Services {
674 bindMounts := []types.ServiceVolumeConfig{}
675 for _, volume := range config.Volumes {
676 if volume.Type == types.VolumeTypeBind {
677 bindMounts = append(bindMounts, volume)
678 }
679 }
680 if len(bindMounts) > 0 {
681 allFindings[serviceName] = bindMounts
682 }
683 }
684 return allFindings
685}
686
687func (s *composeService) checkForSensitiveData(ctx context.Context, project *types.Project) ([]secrets.DetectedSecret, error) {
688 var allFindings []secrets.DetectedSecret

Callers 1

preChecksMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected