Documentation
¶
Index ¶
- type Engine
- func (e *Engine) Eval(ctx context.Context, options RunOptions, inputs []models.State) *Results
- func (e *Engine) InitializationErrors() []error
- func (e *Engine) LoadInput(options RunOptions) (input.Loader, []error, []error)
- func (e *Engine) Metadata(ctx context.Context) ([]MetadataResult, error)
- func (e *Engine) PostProcess(results *Results, loader input.Loader, options RunOptions) *Results
- func (e *Engine) Run(ctx context.Context, options RunOptions) (*Results, []error)
- type EngineOptions
- type Error
- type ErrorCode
- type EvaluationError
- type MetadataResult
- type MissingRemoteSubmodulesError
- type MissingTermError
- type Results
- type RunOptions
- type SubmoduleLoadingError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine scans a set of paths, identifies IaC files, and reports any found vulnerability.
func (*Engine) InitializationErrors ¶
func (*Engine) Metadata ¶
func (e *Engine) Metadata(ctx context.Context) ([]MetadataResult, error)
Metadata returns the metadata of all Policies that have been loaded into this Engine instance.
func (*Engine) PostProcess ¶
type EngineOptions ¶
type Error ¶
Error represents a known error condition that might occur when running the engine. It contains a message, for debugging purposes, and additional information (like a path) when possible.
type ErrorCode ¶
type ErrorCode int
ErrorCode represents one of the possible known error conditions that might occur when running the engine.
const ( ErrorCodeNoLoadableInputs ErrorCode = iota ErrorCodeUnableToRecognizeInputType ErrorCodeUnsupportedInputType ErrorCodeUnableToResolveLocation ErrorCodeUnrecognizedFileExtension ErrorCodeFailedToParseInput ErrorCodeInvalidInput ErrorCodeUnableToReadFile ErrorCodeUnableToReadDir ErrorCodeUnableToReadStdin ErrorCodeFailedToLoadRegoAPI ErrorCodeFailedToLoadRules ErrorCodeFailedToCompile ErrorCodeUnableToReadPath ErrorCodeFailedToMakeResourcesResolvers ErrorCodeResourcesResolverError ErrorCodeSubmoduleLoadingError ErrorCodeMissingRemoteSubmodulesError ErrorCodeEvaluationError ErrorCodeMissingTermError )
type EvaluationError ¶
func (EvaluationError) Error ¶
func (e EvaluationError) Error() string
type MetadataResult ¶
type MetadataResult = engine.MetadataResult
type MissingRemoteSubmodulesError ¶
type MissingRemoteSubmodulesError struct { Message string Code ErrorCode Path string Dir string MissingModules []string }
func (MissingRemoteSubmodulesError) Error ¶
func (e MissingRemoteSubmodulesError) Error() string
type MissingTermError ¶
func (MissingTermError) Error ¶
func (e MissingTermError) Error() string
type RunOptions ¶
type SubmoduleLoadingError ¶
func (SubmoduleLoadingError) Error ¶
func (e SubmoduleLoadingError) Error() string
Click to show internal directories.
Click to hide internal directories.