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

Function Run

pkg/compose/progress.go:28–33  ·  view source on GitHub ↗
(ctx context.Context, pf progressFunc, operation string, bus api.EventProcessor)

Source from the content-addressed store, hash-verified

26type progressFunc func(context.Context) error
27
28func Run(ctx context.Context, pf progressFunc, operation string, bus api.EventProcessor) error {
29 bus.Start(ctx, operation)
30 err := pf(ctx)
31 bus.Done(operation, err != nil)
32 return err
33}
34
35// errorEvent creates a new Error Resource with message
36func errorEvent(id string, msg string) api.Resource {

Callers 15

CopyMethod · 0.85
PushMethod · 0.85
StopMethod · 0.85
ExportMethod · 0.85
StartMethod · 0.85
UpMethod · 0.85
RestartMethod · 0.85
RemoveMethod · 0.85
PullMethod · 0.85
ScaleMethod · 0.85
BuildMethod · 0.85
KillMethod · 0.85

Calls 2

StartMethod · 0.65
DoneMethod · 0.65

Tested by

no test coverage detected