sbom

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 9 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, platform string, org string, repo string) ([]domain.SBOMDependency, error)

type SBOMFormat

type SBOMFormat interface {
	Matches(body []byte) bool
	Name() string
	Parse(body []byte, platform string, org string, repo string) []domain.SBOMDependency
}

func Formats

func Formats() []SBOMFormat

func Identify

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

type SBOMs

type SBOMs struct{}

func (*SBOMs) AnonymiseData

func (d *SBOMs) AnonymiseData(ctx context.Context, sqlDB *sql.DB, orgs []string) (err error)

func (*SBOMs) CreateTables

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

func (*SBOMs) Name

func (*SBOMs) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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