MCPcopy
hub / github.com/nektos/act / Close

Method Close

pkg/container/docker_run.go:294–305  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292}
293
294func (cr *containerReference) Close() common.Executor {
295 return func(_ context.Context) error {
296 if cr.cli != nil {
297 err := cr.cli.Close()
298 cr.cli = nil
299 if err != nil {
300 return fmt.Errorf("failed to close client: %w", err)
301 }
302 }
303 return nil
304 }
305}
306
307func (cr *containerReference) find() common.Executor {
308 return func(ctx context.Context) error {

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected