Documentation ¶
Overview ¶
Package collectors holds collectors related files
Index ¶
Constants ¶
View Source
const ( // ContainerImageScanType defines the container image scan type ContainerImageScanType ScanType = "container-image" // HostScanType defines the host scan type HostScanType ScanType = "host" // ContainerdCollector is the name of the containerd collector ContainerdCollector = "containerd" // DockerCollector is the name of the docker collector DockerCollector = "docker" // HostCollector is the name of the host collector HostCollector = "host" )
Variables ¶
View Source
var Collectors map[string]Collector
Collectors values
Functions ¶
func RegisterCollector ¶
RegisterCollector registers given collector
Types ¶
type Collector ¶
type Collector interface { // Type returns the scan type of the collector Type() ScanType // CleanCache cleans the collector cache CleanCache() error // Init initializes the collector Init(config.Component, optional.Option[workloadmeta.Component]) error // Scan performs a scan Scan(context.Context, sbom.ScanRequest) sbom.ScanResult // Channel returns the channel to send scan results Channel() chan sbom.ScanResult // Options returns the collector options Options() sbom.ScanOptions // Shutdown shuts down the collector Shutdown() }
Collector interface
func GetContainerdScanner ¶
func GetContainerdScanner() Collector
GetContainerdScanner returns the containerd scanner
func GetDockerScanner ¶
func GetDockerScanner() Collector
GetDockerScanner returns the docker scanner
Directories ¶
Path | Synopsis |
---|---|
Package docker holds docker related files
|
Package docker holds docker related files |
Package host holds host related files
|
Package host holds host related files |
Click to show internal directories.
Click to hide internal directories.