folder

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

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
	// 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
}

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