sbom

package
v0.0.0-...-0c83327 Latest Latest
Warning

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

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

Documentation

Overview

Package sbom holds sbom related files

Package sbom holds sbom related files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Package

type Package struct {
	Name       string
	Version    string
	SrcVersion string
}

Package describes a system package

type Resolver

type Resolver struct {
}

Resolver is the Software Bill-Of-material resolver

func NewSBOMResolver

NewSBOMResolver returns a new instance of Resolver

func (*Resolver) OnCGroupDeletedEvent

func (r *Resolver) OnCGroupDeletedEvent(_ *cgroupModel.CacheEntry)

OnCGroupDeletedEvent is used to handle a CGroupDeleted event

func (*Resolver) OnWorkloadSelectorResolvedEvent

func (r *Resolver) OnWorkloadSelectorResolvedEvent(_ *tags.Workload)

OnWorkloadSelectorResolvedEvent is used to handle the creation of a new cgroup with its resolved tags

func (*Resolver) RefreshSBOM

func (r *Resolver) RefreshSBOM(_ containerutils.ContainerID) error

RefreshSBOM regenerates a SBOM for a container

func (*Resolver) ResolvePackage

func (r *Resolver) ResolvePackage(_ containerutils.ContainerID, _ *model.FileEvent) *Package

ResolvePackage returns the Package that owns the provided file

func (*Resolver) SendStats

func (r *Resolver) SendStats() error

SendStats sends stats

func (*Resolver) Start

func (r *Resolver) Start(_ context.Context) error

Start starts the goroutine of the SBOM resolver

Jump to

Keyboard shortcuts

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