Documentation
¶
Index ¶
- func NewDotnetDepsBinaryCataloger(config CatalogerConfig) pkg.Cataloger
- func NewDotnetDepsCataloger() pkg.Cataloger
- func NewDotnetPackagesLockCataloger() pkg.Cataloger
- func NewDotnetPortableExecutableCataloger() pkg.Cataloger
- type CatalogerConfig
- func (c CatalogerConfig) WithDepPackagesMustClaimDLL(requireDlls bool) CatalogerConfig
- func (c CatalogerConfig) WithDepPackagesMustHaveDLL(requireDlls bool) CatalogerConfig
- func (c CatalogerConfig) WithPropagateDLLClaimsToParents(propagate bool) CatalogerConfig
- func (c CatalogerConfig) WithRelaxDLLClaimsWhenBundlingDetected(relax bool) CatalogerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDotnetDepsBinaryCataloger ¶ added in v1.22.0
func NewDotnetDepsBinaryCataloger(config CatalogerConfig) pkg.Cataloger
NewDotnetDepsBinaryCataloger returns a cataloger based on PE and deps.json file contents.
func NewDotnetDepsCataloger ¶
NewDotnetDepsCataloger returns a cataloger based on deps.json file contents. Deprecated: use NewDotnetDepsBinaryCataloger instead which combines the PE and deps.json data which yields more accurate results (will be removed in syft v2.0).
func NewDotnetPackagesLockCataloger ¶ added in v1.19.0
NewDotnetPackagesLockCataloger returns a cataloger based on packages.lock.json files.
func NewDotnetPortableExecutableCataloger ¶ added in v0.86.0
NewDotnetPortableExecutableCataloger returns a cataloger based on PE file contents. Deprecated: use NewDotnetDepsBinaryCataloger instead which combines the PE and deps.json data which yields more accurate results (will be removed in syft v2.0).
Types ¶
type CatalogerConfig ¶ added in v1.20.0
type CatalogerConfig struct {
// DepPackagesMustHaveDLL allows for deps.json packages to be included only if there is a DLL on disk for that package.
// app-config: dotnet.dep-packages-must-have-dll
DepPackagesMustHaveDLL bool `mapstructure:"dep-packages-must-have-dll" json:"dep-packages-must-have-dll" yaml:"dep-packages-must-have-dll"`
// DepPackagesMustClaimDLL allows for deps.json packages to be included only if there is a runtime/resource DLL claimed in the deps.json targets section.
// This does not require such claimed DLLs to exist on disk. The behavior of this
// app-config: dotnet.dep-packages-must-claim-dll
DepPackagesMustClaimDLL bool `mapstructure:"dep-packages-must-claim-dll" json:"dep-packages-must-claim-dll" yaml:"dep-packages-must-claim-dll"`
// PropagateDLLClaimsToParents allows for deps.json packages to be included if any child (transitive) package claims a DLL. This applies to both the claims configuration and evidence-on-disk configurations.
// app-config: dotnet.propagate-dll-claims-to-parents
PropagateDLLClaimsToParents bool `mapstructure:"propagate-dll-claims-to-parents" json:"propagate-dll-claims-to-parents" yaml:"propagate-dll-claims-to-parents"`
// RelaxDLLClaimsWhenBundlingDetected will look for indications of IL bundle tooling via deps.json package names
// and, if found (and this config option is enabled), will relax the DepPackagesMustClaimDLL value to `false` only in those cases.
// app-config: dotnet.relax-dll-claims-when-bundling-detected
RelaxDLLClaimsWhenBundlingDetected bool `` /* 148-byte string literal not displayed */
}
func DefaultCatalogerConfig ¶ added in v1.20.0
func DefaultCatalogerConfig() CatalogerConfig
func (CatalogerConfig) WithDepPackagesMustClaimDLL ¶ added in v1.22.0
func (c CatalogerConfig) WithDepPackagesMustClaimDLL(requireDlls bool) CatalogerConfig
func (CatalogerConfig) WithDepPackagesMustHaveDLL ¶ added in v1.22.0
func (c CatalogerConfig) WithDepPackagesMustHaveDLL(requireDlls bool) CatalogerConfig
func (CatalogerConfig) WithPropagateDLLClaimsToParents ¶ added in v1.23.0
func (c CatalogerConfig) WithPropagateDLLClaimsToParents(propagate bool) CatalogerConfig
func (CatalogerConfig) WithRelaxDLLClaimsWhenBundlingDetected ¶ added in v1.22.0
func (c CatalogerConfig) WithRelaxDLLClaimsWhenBundlingDetected(relax bool) CatalogerConfig