Versions in this module Expand all Collapse all v0 v0.1.0 Aug 21, 2023 Changes in this version + type Policy struct + Providers []PolicyBlock + Resources []PolicyBlock + func Parse(path string) (Policy, error) + type PolicyBlock struct + Params map[string]interface{} + Type string + type PolicyExecutionFlags struct + Strict bool + type PolicyOutcome uint64 + const OUTCOME_FAIL + const OUTCOME_REMEDIATE + const OUTCOME_SUCCESS + type PolicyResult struct + Outcome PolicyOutcome + Reason string + type ProviderPolicyExecutor interface + Execute func(payload ProviderPolicyPayload) (PolicyResult, error) + type ProviderPolicyPayload struct + CurrentProviders map[string]providers.Version + Flags PolicyExecutionFlags + Policy PolicyBlock + WorkingDir string + type ResourcePolicyExecutor interface + Execute func(payload ResourcePolicyPayload) (PolicyResult, error) + type ResourcePolicyPayload struct + FileName string + FilePath string + Flags PolicyExecutionFlags + Hcl *hclwrite.File + Policy PolicyBlock + WorkingDir string