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

Struct Engine

pkg/policies/engine/rego/rego.go:34–40  ·  view source on GitHub ↗

Engine policy checker for chainloop attestations and materials

Source from the content-addressed store, hash-verified

32
33// Engine policy checker for chainloop attestations and materials
34type Engine struct {
35 // operatingMode defines the mode of running the policy engine
36 // by restricting or not the operations allowed by the compiler
37 operatingMode EnvironmentMode
38 // Embed common engine options
39 *engine.CommonEngineOptions
40}
41
42// NewEngine creates a new policy engine with the given options
43// default operating mode is EnvironmentModeRestrictive

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected