MCPcopy Index your code
hub / github.com/docker/docker-agent / NewExecutor

Function NewExecutor

pkg/hooks/executor.go:50–52  ·  view source on GitHub ↗

NewExecutor creates a new hook executor backed by [DefaultRegistry].

(config *Config, workingDir string, env []string)

Source from the content-addressed store, hash-verified

48
49// NewExecutor creates a new hook executor backed by [DefaultRegistry].
50func NewExecutor(config *Config, workingDir string, env []string) *Executor {
51 return NewExecutorWithRegistry(config, workingDir, env, DefaultRegistry)
52}
53
54// NewExecutorWithRegistry creates a new hook executor that resolves hook
55// types against the supplied registry.

Calls 1

NewExecutorWithRegistryFunction · 0.85