Versions in this module Expand all Collapse all v1 v1.0.0 Mar 1, 2024 Changes in this version + func CreateSBOM(ctx context.Context, src source.Source, cfg *CreateSBOMConfig) (*sbom.SBOM, error) + func GetSource(ctx context.Context, userInput string, cfg *GetSourceConfig) (source.Source, error) + func SetBus(b *partybus.Bus) + func SetLogger(logger logger.Logger) + type CreateSBOMConfig struct + CatalogerSelection pkgcataloging.SelectionRequest + DataGeneration cataloging.DataGenerationConfig + Files filecataloging.Config + Packages pkgcataloging.Config + Parallelism int + Relationships cataloging.RelationshipsConfig + Search cataloging.SearchConfig + ToolConfiguration interface{} + ToolName string + ToolVersion string + func DefaultCreateSBOMConfig() *CreateSBOMConfig + func (c *CreateSBOMConfig) Create(ctx context.Context, src source.Source) (*sbom.SBOM, error) + func (c *CreateSBOMConfig) WithCatalogerSelection(selection pkgcataloging.SelectionRequest) *CreateSBOMConfig + func (c *CreateSBOMConfig) WithCatalogers(catalogerRefs ...pkgcataloging.CatalogerReference) *CreateSBOMConfig + func (c *CreateSBOMConfig) WithDataGenerationConfig(cfg cataloging.DataGenerationConfig) *CreateSBOMConfig + func (c *CreateSBOMConfig) WithFilesConfig(cfg filecataloging.Config) *CreateSBOMConfig + func (c *CreateSBOMConfig) WithPackagesConfig(cfg pkgcataloging.Config) *CreateSBOMConfig + func (c *CreateSBOMConfig) WithParallelism(p int) *CreateSBOMConfig + func (c *CreateSBOMConfig) WithRelationshipsConfig(cfg cataloging.RelationshipsConfig) *CreateSBOMConfig + func (c *CreateSBOMConfig) WithSearchConfig(cfg cataloging.SearchConfig) *CreateSBOMConfig + func (c *CreateSBOMConfig) WithTool(name, version string, cfg ...any) *CreateSBOMConfig + func (c *CreateSBOMConfig) WithoutCatalogers() *CreateSBOMConfig + func (c *CreateSBOMConfig) WithoutFiles() *CreateSBOMConfig + type GetSourceConfig struct + DefaultImagePullSource string + SourceProviderConfig *sourceproviders.Config + Sources []string + func DefaultGetSourceConfig() *GetSourceConfig + func (c *GetSourceConfig) WithAlias(alias source.Alias) *GetSourceConfig + func (c *GetSourceConfig) WithBasePath(basePath string) *GetSourceConfig + func (c *GetSourceConfig) WithDefaultImagePullSource(defaultImagePullSource string) *GetSourceConfig + func (c *GetSourceConfig) WithDigestAlgorithms(algorithms ...crypto.Hash) *GetSourceConfig + func (c *GetSourceConfig) WithExcludeConfig(excludeConfig source.ExcludeConfig) *GetSourceConfig + func (c *GetSourceConfig) WithPlatform(platform *image.Platform) *GetSourceConfig + func (c *GetSourceConfig) WithRegistryOptions(registryOptions *image.RegistryOptions) *GetSourceConfig + func (c *GetSourceConfig) WithSources(sources ...string) *GetSourceConfig