sbom

package
v0.0.0-...-24d2617 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package sbom holds sbom related files

Index

Constants

View Source
const (
	ScanFilesystemType = "filesystem" // ScanFilesystemType defines the type for file-system scan
	ScanDaemonType     = "daemon"     // ScanDaemonType defines the type for daemon scan
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report interface {
	ToCycloneDX() (*cyclonedxgo.BOM, error)
	ID() string
}

Report defines the report interface

type ScanOptions

type ScanOptions struct {
	Analyzers        []string
	CheckDiskUsage   bool
	MinAvailableDisk uint64
	Timeout          time.Duration
	WaitAfter        time.Duration
	Fast             bool
	CollectFiles     bool
	UseMount         bool
	OverlayFsScan    bool
}

ScanOptions defines the scan options

func ScanOptionsFromConfig

func ScanOptionsFromConfig(cfg config.Component, containers bool) (scanOpts ScanOptions)

ScanOptionsFromConfig loads the scanning options from the configuration

type ScanRequest

type ScanRequest interface {
	Collector() string
	Type(ScanOptions) string
	ID() string
}

ScanRequest defines the scan request interface

type ScanResult

type ScanResult struct {
	Error     error
	Report    Report
	CreatedAt time.Time
	Duration  time.Duration
	ImgMeta   *workloadmeta.ContainerImageMetadata
}

ScanResult defines the scan result

Directories

Path Synopsis
Package collectors holds collectors related files
Package collectors holds collectors related files
docker
Package docker holds docker related files
Package docker holds docker related files
host
Package host holds host related files
Package host holds host related files
Package scanner holds scanner related files
Package scanner holds scanner related files
Package telemetry holds telemetry related files
Package telemetry holds telemetry related files

Jump to

Keyboard shortcuts

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