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
Close releases the internal resources used by the Lava engine.
func (Engine) Run ¶ added in v0.4.0
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.