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

Method Down

pkg/compose/down.go:38–42  ·  view source on GitHub ↗
(ctx context.Context, projectName string, options api.DownOptions)

Source from the content-addressed store, hash-verified

36type downOp func() error
37
38func (s *composeService) Down(ctx context.Context, projectName string, options api.DownOptions) error {
39 return Run(ctx, func(ctx context.Context) error {
40 return s.down(ctx, strings.ToLower(projectName), options)
41 }, "down", s.events)
42}
43
44func (s *composeService) down(ctx context.Context, projectName string, options api.DownOptions) error { //nolint:gocyclo
45 resourceToRemove := false

Callers 1

WaitMethod · 0.95

Calls 2

downMethod · 0.95
RunFunction · 0.85

Tested by

no test coverage detected