sbom

package
v0.94.3 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 12 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(filename string, repoKey domain.RepoKey) ([]domain.SBOMDependency, []domain.License, error)

type SBOMFormat

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

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