Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policy ¶
type Policy struct { Providers []PolicyBlock `yaml:"providers"` Resources []PolicyBlock `yaml:"resources"` }
type PolicyBlock ¶
type PolicyExecutionFlags ¶
type PolicyExecutionFlags struct {
Strict bool
}
type PolicyOutcome ¶
type PolicyOutcome uint64
const ( OUTCOME_SUCCESS PolicyOutcome = iota OUTCOME_FAIL OUTCOME_REMEDIATE )
type PolicyResult ¶
type PolicyResult struct { Outcome PolicyOutcome Reason string }
type ProviderPolicyExecutor ¶
type ProviderPolicyExecutor interface {
Execute(payload ProviderPolicyPayload) (PolicyResult, error)
}
type ProviderPolicyPayload ¶
type ProviderPolicyPayload struct { Policy PolicyBlock WorkingDir string Flags PolicyExecutionFlags CurrentProviders map[string]providers.Version }
type ResourcePolicyExecutor ¶
type ResourcePolicyExecutor interface {
Execute(payload ResourcePolicyPayload) (PolicyResult, error)
}
type ResourcePolicyPayload ¶
type ResourcePolicyPayload struct { Hcl *hclwrite.File Policy PolicyBlock WorkingDir string FileName string FilePath string Flags PolicyExecutionFlags }
Click to show internal directories.
Click to hide internal directories.