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

Method Kill

pkg/compose/kill.go:29–33  ·  pkg/compose/kill.go::composeService.Kill
(ctx context.Context, projectName string, options api.KillOptions)

Source from the content-addressed store, hash-verified

27)
28
29func (s *composeService) Kill(ctx context.Context, projectName string, options api.KillOptions) error {
30 return Run(ctx, func(ctx context.Context) error {
31 return s.kill(ctx, strings.ToLower(projectName), options)
32 }, "kill", s.events)
33}
34
35func (s *composeService) kill(ctx context.Context, projectName string, options api.KillOptions) error {
36 services := options.Services

Callers

nothing calls this directly

Calls 2

killMethod · 0.95
RunFunction · 0.85

Tested by

no test coverage detected