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

Method Kill

pkg/api/api.go:109–109  ·  pkg/api/api.go::Compose.Kill

Kill executes the equivalent to a `compose kill`

(ctx context.Context, projectName string, options KillOptions)

Source from the content-addressed store, hash-verified

107 List(ctx context.Context, options ListOptions) ([]Stack, error)
108 // Kill executes the equivalent to a `compose kill`
109 Kill(ctx context.Context, projectName string, options KillOptions) error
110 // RunOneOffContainer creates a service oneoff container and starts its dependencies
111 RunOneOffContainer(ctx context.Context, project *types.Project, opts RunOptions) (int, error)
112 // Remove executes the equivalent to a `compose rm`

Callers 12

doTestFunction · 0.65
TestWaitOnInfinityFunction · 0.65
TestComposeCancelFunction · 0.65
TestKillAllFunction · 0.65
TestKillSignalFunction · 0.65
aliveFunction · 0.65
runKillFunction · 0.65
handleCtrlZFunction · 0.65

Implementers 3

MockComposepkg/mocks/mock_docker_compose_api.go
MockComposeMockRecorderpkg/mocks/mock_docker_compose_api.go
composeServicepkg/compose/compose.go

Calls

no outgoing calls

Tested by 9

doTestFunction · 0.52
TestWaitOnInfinityFunction · 0.52
TestComposeCancelFunction · 0.52
TestKillAllFunction · 0.52
TestKillSignalFunction · 0.52