engine

package
v0.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Overview

Package engine runs Vulcan checks and retrieves the generated reports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine added in v0.4.0

type Engine struct {
	// contains filtered or unexported fields
}

Engine represents a Lava engine able to run Vulcan checks and retrieve the generated reports.

func New added in v0.4.0

func New(cfg config.AgentConfig, checktypeURLs []string) (eng Engine, err error)

New returns a new Engine. It retrieves and merges the checktype catalogs from the provided checktype URLs to generate the catalog that will be used to configure the scans.

func NewWithCatalog added in v0.6.0

func NewWithCatalog(cfg config.AgentConfig, catalog checktypes.Catalog) (eng Engine, err error)

NewWithCatalog returns a new Engine from a provided agent configuration and checktype catalog.

func (Engine) Close added in v0.4.0

func (eng Engine) Close() error

Close releases the internal resources used by the Lava engine.

func (Engine) Run added in v0.4.0

func (eng Engine) Run(targets []config.Target) (Report, error)

Run runs vulcan checks and returns the generated report. Before running the scan, it checks that all the provided targets are reachable and returns an error if any of them is not. The check list is based on the configured checktype catalogs and the provided targets. These checks are run by a Vulcan agent, which is configured using the specified configuration.

type Report

type Report map[string]report.Report

Report is a collection of reports returned by Vulcan checks and indexed by check ID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL