Documentation
¶
Overview ¶
Package policy provides the OPA policy check plugin for TerraCi.
Index ¶
- Variables
- type Action
- type Checker
- type Config
- type Engine
- type Overwrite
- type Plugin
- func (p *Plugin) BuildInitConfig(state plugin.InitState) *plugin.InitContribution
- func (p *Plugin) Commands(ctx *plugin.AppContext) []*cobra.Command
- func (p *Plugin) ConfigKey() string
- func (p *Plugin) ContributeToSummary(_ context.Context, appCtx *plugin.AppContext, execCtx *plugin.ExecutionContext) error
- func (p *Plugin) Description() string
- func (p *Plugin) InitGroup() *plugin.InitGroupSpec
- func (p *Plugin) Initialize(_ context.Context, appCtx *plugin.AppContext) error
- func (p *Plugin) IsConfigured() bool
- func (p *Plugin) Name() string
- func (p *Plugin) NewConfig() any
- func (p *Plugin) PipelineContribution() *pipeline.Contribution
- func (p *Plugin) SetConfig(cfg any) error
- func (p *Plugin) VersionInfo() map[string]string
- type Puller
- type Result
- type Source
- type SourceConfig
- type Summary
- type Violation
Constants ¶
This section is empty.
Variables ¶
var ( ActionBlock = policyengine.ActionBlock ActionWarn = policyengine.ActionWarn ActionIgnore = policyengine.ActionIgnore )
Re-export constants from internal package.
var ( OPAVersion = policyengine.OPAVersion NewChecker = policyengine.NewChecker NewEngine = policyengine.NewEngine NewSource = policyengine.NewSource NewPuller = policyengine.NewPuller NewSummary = policyengine.NewSummary )
Re-export functions from internal package.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action = policyengine.Action
Re-export types from internal package for external consumers.
type Checker ¶
type Checker = policyengine.Checker
Re-export types from internal package for external consumers.
type Config ¶
type Config = policyengine.Config
Re-export types from internal package for external consumers.
type Engine ¶
type Engine = policyengine.Engine
Re-export types from internal package for external consumers.
type Overwrite ¶
type Overwrite = policyengine.Overwrite
Re-export types from internal package for external consumers.
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is the OPA policy check plugin.
func (*Plugin) BuildInitConfig ¶
func (p *Plugin) BuildInitConfig(state plugin.InitState) *plugin.InitContribution
func (*Plugin) ContributeToSummary ¶
func (p *Plugin) ContributeToSummary(_ context.Context, appCtx *plugin.AppContext, execCtx *plugin.ExecutionContext) error
func (*Plugin) Description ¶
func (*Plugin) InitGroup ¶
func (p *Plugin) InitGroup() *plugin.InitGroupSpec
func (*Plugin) Initialize ¶
func (*Plugin) IsConfigured ¶
func (*Plugin) PipelineContribution ¶
func (p *Plugin) PipelineContribution() *pipeline.Contribution
func (*Plugin) VersionInfo ¶
type Puller ¶
type Puller = policyengine.Puller
Re-export types from internal package for external consumers.
type Result ¶
type Result = policyengine.Result
Re-export types from internal package for external consumers.
type Source ¶
type Source = policyengine.Source
Re-export types from internal package for external consumers.
type SourceConfig ¶
type SourceConfig = policyengine.SourceConfig
Re-export types from internal package for external consumers.
type Summary ¶
type Summary = policyengine.Summary
Re-export types from internal package for external consumers.
type Violation ¶
type Violation = policyengine.Violation
Re-export types from internal package for external consumers.