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

Method Copy

pkg/compose/cp.go:45–49  ·  pkg/compose/cp.go::composeService.Copy
(ctx context.Context, projectName string, options api.CopyOptions)

Source from the content-addressed store, hash-verified

43)
44
45func (s *composeService) Copy(ctx context.Context, projectName string, options api.CopyOptions) error {
46 return Run(ctx, func(ctx context.Context) error {
47 return s.copy(ctx, projectName, options)
48 }, "copy", s.events)
49}
50
51func (s *composeService) copy(ctx context.Context, projectName string, options api.CopyOptions) error {
52 projectName = strings.ToLower(projectName)

Callers

nothing calls this directly

Calls 2

copyMethod · 0.95
RunFunction · 0.85

Tested by

no test coverage detected