types

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: BlueOak-1.0.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Outputter

type Outputter interface {
	Name() string
	Description() string
	Output(ctx context.Context, scanResults []Scanlet) error
}

type Scanlet

type Scanlet struct {
	Name           string      `json:"name" yaml:"name"`
	ScannerFamily  string      `json:"scanner_family" yaml:"scanner_family"`
	Description    string      `json:"description" yaml:"description"`
	OutputRenderer string      `json:"output_renderer" yaml:"output_renderer"`
	Spec           interface{} `json:"spec" yaml:"spec"`
}

type Scanner

type Scanner interface {
	Name() string
	Description() string
	AvailableChecks() []string
	Scan(ctx context.Context, RequestedOutputs []string) (scanResults []Scanlet, err error)
}

Jump to

Keyboard shortcuts

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