types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: Apache-2.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 FamilyType

type FamilyType string
const (
	SBOM FamilyType = "sbom"

	Vulnerabilities  FamilyType = "vulnerabilities"
	Secrets          FamilyType = "secrets"
	Rootkits         FamilyType = "rootkits"
	Malware          FamilyType = "malware"
	Misconfiguration FamilyType = "misconfiguration"
	InfoFinder       FamilyType = "infofinder"

	Exploits FamilyType = "exploits"
)

type Input

type Input struct {
	// StripPathFromResult overrides global StripInputPaths value
	StripPathFromResult *bool  `yaml:"strip_path_from_result" mapstructure:"strip_path_from_result"`
	Input               string `yaml:"input" mapstructure:"input"`
	InputType           string `yaml:"input_type" mapstructure:"input_type"`
}

type InputScanMetadata

type InputScanMetadata struct {
	InputType     string
	InputPath     string
	InputSize     int64
	ScanStartTime time.Time
	ScanEndTime   time.Time
}

func CreateInputScanMetadata

func CreateInputScanMetadata(startTime, endTime time.Time, inputSize int64, input Input) InputScanMetadata

type Metadata

type Metadata struct {
	Timestamp  time.Time `json:"Timestamp"`
	Scanners   []string  `json:"Scanners"`
	InputScans []InputScanMetadata
}

Jump to

Keyboard shortcuts

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