detectors

package
v0.0.0-test Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppFeatureVersion

type AppFeatureVersion struct {
	scan.AppPackage
	ModuleVuls []ModuleVul
	InBase     bool
}

type ContainerJson

type ContainerJson struct {
	Metadata      Metadata `json:"metadata"`
	ContentSets   []string `json:"content_sets"`
	ImageContents []string `json:"image_contents"`
}

type FeatureFile

type FeatureFile struct {
	Data   []byte
	InBase bool
}

type FeatureVersion

type FeatureVersion struct {
	Package    string
	File       string
	Version    utils.Version
	MinVer     utils.Version
	ModuleVuls []ModuleVul
	CPEs       utils.Set
	InBase     bool
}

func DetectFeatures

func DetectFeatures(namespace string, data map[string]*FeatureFile, path string) ([]FeatureVersion, error)

DetectFeatures detects a list of FeatureVersion using every registered FeaturesDetector.

type Metadata

type Metadata struct {
	IcmVersion      int    `json:"icm_version"`
	IcmSpec         string `json:"icm_spec"`
	ImageLayerIndex int    `json:"image_layer_index"`
}

type ModuleVul

type ModuleVul struct {
	Name   string
	Status share.ScanVulStatus
}

type Namespace

type Namespace struct {
	Name    string
	RHELVer string
}

func DetectNamespace

func DetectNamespace(data map[string]*FeatureFile) *Namespace

DetectNamespace finds the OS of the layer by using every registered NamespaceDetector.

Jump to

Keyboard shortcuts

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