 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(opts *InitOptions) error
Types ¶
type EvalOptions ¶ added in v1.36.0
type EvalResult ¶ added in v1.36.0
type EvalSummary ¶ added in v1.42.0
type EvalSummary struct {
	Result    *EvalResult           `json:"result"`
	DebugInfo *EvalSummaryDebugInfo `json:"debug_info,omitempty"`
}
    func Evaluate ¶ added in v1.36.0
func Evaluate(opts *EvalOptions, logger zerolog.Logger) (*EvalSummary, error)
type EvalSummaryDebugInfo ¶ added in v1.42.0
type EvalSummaryDebugInfo struct {
	Inputs     []json.RawMessage `json:"inputs"`
	RawResults []json.RawMessage `json:"raw_results"`
}
    type InitOptions ¶
type PolicyToLint ¶ added in v1.35.0
type PolicyToLint struct {
	Path      string
	YAMLFiles []*File
	RegoFiles []*File
	Format    bool
	Config    string
	Errors    []ValidationError
}
    func Lookup ¶ added in v1.35.0
func Lookup(absPath, config string, format bool) (*PolicyToLint, error)
Read policy files
func (*PolicyToLint) AddError ¶ added in v1.35.0
func (p *PolicyToLint) AddError(path, message string, line int)
Adds a new validation error
func (*PolicyToLint) HasErrors ¶ added in v1.35.0
func (p *PolicyToLint) HasErrors() bool
Returns true if any validation errors were found
func (*PolicyToLint) Validate ¶ added in v1.35.0
func (p *PolicyToLint) Validate()
type TemplateData ¶
type ValidationError ¶ added in v1.35.0
func (ValidationError) Error ¶ added in v1.35.0
func (e ValidationError) Error() string
 Click to show internal directories. 
   Click to hide internal directories.