indexer

package
v1.41.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	XrayUrlEnvVariable  = "JFROG_XRAY_PLATFORM_URL"
	XrayUserEnvVariable = "JFROG_XRAY_USER"
	// #nosec G101 -- Not credentials.
	XrayPasswordEnvVariable = "JFROG_XRAY_PASSWORD"
	// #nosec G101 -- Not credentials.
	XrayTokenEnvVariable      = "JFROG_XRAY_TOKEN"
	XrayProjectKeyEnvVariable = "JFROG_XRAY_PROJECT_KEY"
)

Variables

This section is empty.

Functions

func CreateTargetEmptySbom

func CreateTargetEmptySbom(target results.ScanTarget) *cyclonedx.BOM

func DownloadIndexerIfNeeded

func DownloadIndexerIfNeeded(xrayManager *xray.XrayServicesManager, xrayVersionStr string) (indexerPath string, err error)

func WithBypassArchiveLimits

func WithBypassArchiveLimits(bypass bool) bom.SbomGeneratorOption

func WithProjectKey added in v1.40.0

func WithProjectKey(projectKey string) bom.SbomGeneratorOption

func WithServerDetails added in v1.34.1

func WithServerDetails(serverDetails *config.ServerDetails) bom.SbomGeneratorOption

func WithXray

func WithXray(manager *xray.XrayServicesManager, xrayVersion string) bom.SbomGeneratorOption

Types

type IndexerBomGenerator

type IndexerBomGenerator struct {
	// contains filtered or unexported fields
}

IndexerBomGenerator is a BomGenerator that uses the Xray Indexer to generate a CycloneDX SBOM. It indexes a file and converts the resulting component graph to a CycloneDX SBOM.

func NewIndexerBomGenerator

func NewIndexerBomGenerator() *IndexerBomGenerator

func (*IndexerBomGenerator) CleanUp

func (ibg *IndexerBomGenerator) CleanUp() error

func (*IndexerBomGenerator) GenerateSbom

func (ibg *IndexerBomGenerator) GenerateSbom(target results.ScanTarget) (sbom *cyclonedx.BOM, err error)

func (*IndexerBomGenerator) IndexFile

func (ibg *IndexerBomGenerator) IndexFile(filePath string) (*xrayClientUtils.BinaryGraphNode, error)

func (*IndexerBomGenerator) PrepareGenerator

func (ibg *IndexerBomGenerator) PrepareGenerator() (err error)

func (*IndexerBomGenerator) WithOptions

func (ibg *IndexerBomGenerator) WithOptions(options ...bom.SbomGeneratorOption) bom.SbomGenerator

Jump to

Keyboard shortcuts

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