rpm

package
v5.0.0-preview.1+incom... Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerJson

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

type Metadata

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

type ParsedData

type ParsedData struct {
	Labels []map[string]string `json:"labels"`
}

type RpmFeaturesDetector

type RpmFeaturesDetector struct{}

RpmFeaturesDetector implements FeaturesDetector and detects rpm packages It requires the "rpm" binary to be in the PATH

func (*RpmFeaturesDetector) Detect

func (detector *RpmFeaturesDetector) Detect(namespace string, files map[string]*detectors.FeatureFile, path string) ([]detectors.FeatureVersion, error)

Detect detects packages using var/lib/rpm/Packages from the input data

func (*RpmFeaturesDetector) GetRequiredFiles

func (detector *RpmFeaturesDetector) GetRequiredFiles() []string

GetRequiredFiles returns the list of files required for Detect, without leading /

type RpmsData

type RpmsData struct {
	CpeIds     []string   `json:"cpe_ids"`
	ParsedData ParsedData `json:"parsed_data"`
}

type RpmsMap

type RpmsMap struct {
	Data map[string]map[string][]string
}

type RpmsNvrData

type RpmsNvrData struct {
	Data []RpmsData
}

Jump to

Keyboard shortcuts

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