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

Function WithRuntimeInputs

pkg/attestation/crafter/crafter.go:578–582  ·  view source on GitHub ↗

WithRuntimeInputs supplies policy input values that are merged additively onto the contract arguments when evaluating the standalone material policies for this add. Used by --policy-input-from-file.

(inputs *policies.RuntimeInputs)

Source from the content-addressed store, hash-verified

576// the contract arguments when evaluating the standalone material policies for
577// this add. Used by --policy-input-from-file.
578func WithRuntimeInputs(inputs *policies.RuntimeInputs) AddOpt {
579 return func(o *addOpts) {
580 o.runtimeInputs = inputs
581 }
582}
583
584// AddMaterialContractFree adds a material to the crafting state without checking the contract schema.
585// This is useful for adding materials that are not defined in the schema.

Callers 1

runtimeInputAddOptsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected