MCPcopy Create free account
hub / github.com/conforma/cli / GetPolicy

Method GetPolicy

internal/policy/source/source.go:66–66  ·  view source on GitHub ↗
(ctx context.Context, dest string, showMsg bool)

Source from the content-addressed store, hash-verified

64// Must implement the GetPolicy() method.
65type PolicySource interface {
66 GetPolicy(ctx context.Context, dest string, showMsg bool) (string, error)
67 PolicyUrl() string
68 Subdir() string
69 Type() PolicyType

Callers 6

PreProcessPolicyFunction · 0.65
TestInlineDataSourceFunction · 0.65
TestInlineDataGetPolicyFunction · 0.65
EvaluateMethod · 0.65
fetchPolicyCmdFunction · 0.65

Implementers 4

PolicyUrlinternal/policy/source/source.go
inlineDatainternal/policy/source/source.go
mockPolicySourceinternal/policy/source/source_test.go
testPolicySourceinternal/evaluator/conftest_evaluator_

Calls

no outgoing calls

Tested by 2

TestInlineDataSourceFunction · 0.52
TestInlineDataGetPolicyFunction · 0.52