sbom

package
v0.113.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewImporter

func NewImporter() importer

Types

type Parser

type Parser struct{}

func NewParser

func NewParser() Parser

func (Parser) ParseFile

func (Parser) ParseFile(ctx context.Context, filename string, componentNameOverride *string, repoKey *domain.RepoKey) ([]domain.SBOMDependency, []domain.License, string, error)

type SBOMFormat

type SBOMFormat interface {
	Matches(body []byte) bool
	Name() string
	Parse(body []byte, componentName string, repoKey *domain.RepoKey) ([]domain.SBOMDependency, []domain.License)
	ComponentName(body []byte) string
}

func Formats

func Formats() []SBOMFormat

func Identify

func Identify(body []byte) (SBOMFormat, bool)

type SBOMs

type SBOMs struct{}

func (*SBOMs) CreateTables

func (*SBOMs) CreateTables(ctx context.Context, sqlDB *sql.DB) error

func (*SBOMs) Name

func (*SBOMs) Name() string

func (*SBOMs) QueryGolangCILint added in v0.65.0

func (*SBOMs) QueryGolangCILint(ctx context.Context, sqlDB *sql.DB) (result queries.GolangCILintResult, err error)

func (*SBOMs) QueryMostPopularDockerImages added in v0.65.0

func (*SBOMs) QueryMostPopularDockerImages(ctx context.Context, sqlDB *sql.DB) (result queries.MostPopularDockerImagesResult, err error)

func (*SBOMs) QueryMostPopularPackageManagers added in v0.65.0

func (*SBOMs) QueryMostPopularPackageManagers(ctx context.Context, sqlDB *sql.DB) ([]queries.MostPopularPackageManagersRow, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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