MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / WithExecutionTimeout

Function WithExecutionTimeout

pkg/policies/engine/engine.go:98–102  ·  view source on GitHub ↗

WithExecutionTimeout sets the WASM execution timeout

(timeout time.Duration)

Source from the content-addressed store, hash-verified

96
97// WithExecutionTimeout sets the WASM execution timeout
98func WithExecutionTimeout(timeout time.Duration) Option {
99 return func(opts *Options) {
100 opts.ExecutionTimeout = timeout
101 }
102}
103
104// WithLogger sets the WASM engine logger
105func WithLogger(logger *zerolog.Logger) Option {

Callers 1

TestNewEngineFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestNewEngineFunction · 0.74