Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
func NewAdapter(ctx tcontext.TransferMetadata, config types.Config) (map[types.AdapterRole]Adapter, string, string, error)
NewAdapter initializes and returns the correct adapters (both input & output)
Types ¶
type Adapter ¶
type Adapter interface {
// Adds CLI flags to the commands
AddCommandParams(cmd *cobra.Command)
// Parses & validates input params
ParseAndValidateParams(cmd *cobra.Command) error
// Fetch SBOMs lazily using iterator
FetchSBOMs(ctx tcontext.TransferMetadata) (iterator.SBOMIterator, error)
// Outputs SBOMs (uploading)
UploadSBOMs(ctx tcontext.TransferMetadata, iterator iterator.SBOMIterator) error
// Dry-Run: to be used to display fetched and uploaded SBOMs by input and output adapter respectively.
DryRun(ctx tcontext.TransferMetadata, iterator iterator.SBOMIterator) error
}
Adapter defines the interface for all adapters
Click to show internal directories.
Click to hide internal directories.