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

Function WithEnablePrint

pkg/policies/engine/engine.go:84–88  ·  view source on GitHub ↗

WithEnablePrint enables print/log statements in policies

(enable bool)

Source from the content-addressed store, hash-verified

82
83// WithEnablePrint enables print/log statements in policies
84func WithEnablePrint(enable bool) Option {
85 return func(opts *Options) {
86 opts.EnablePrint = enable
87 }
88}
89
90// WithOperatingMode sets the Rego engine operating mode (restrictive or permissive)
91func WithOperatingMode(mode int32) Option {

Callers 2

executeScriptMethod · 0.92
TestNewEngineFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestNewEngineFunction · 0.74