folder

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 12 Imported by: ? modules, 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FolderAdapter

type FolderAdapter struct {
	Role types.AdapterRole

	Uploader  SBOMUploader
	Overwrite bool
	// contains filtered or unexported fields
}

FolderAdapter handles storing SBOMs in a local folder

func (*FolderAdapter) AddCommandParams

func (f *FolderAdapter) AddCommandParams(cmd *cobra.Command)

AddCommandParams defines folder adapter CLI flags

func (*FolderAdapter) DryRun

DryRun for Output Adapter: Simulates writing SBOMs to a folder

func (*FolderAdapter) FetchSBOMs

FetchSBOMs retrieves SBOMs lazily

func (*FolderAdapter) ParseAndValidateParams

func (f *FolderAdapter) ParseAndValidateParams(cmd *cobra.Command) error

ParseAndValidateParams validates the folder path

func (*FolderAdapter) UploadSBOMs

UploadSBOMs writes SBOMs to the output folder

type FolderConfig

type FolderConfig struct {
	FolderPath string
	Settings   types.UploadSettings
	Overwrite  bool
}

func NewFolderConfig

func NewFolderConfig() *FolderConfig

type FolderOutputReporter

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

func NewFolderOutputReporter

func NewFolderOutputReporter(folderPath string) *FolderOutputReporter

func (*FolderOutputReporter) DryRun

type SBOMUploader

type SBOMUploader interface {
	Upload(ctx tcontext.TransferMetadata, config *FolderConfig, iter iterator.SBOMIterator) error
}

type SequentialUploader

type SequentialUploader struct{}

func (*SequentialUploader) Upload

Jump to

Keyboard shortcuts

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