mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 06:56:40 +01:00
Signed-off-by: rogueai <rogueai@users.noreply.github.com> Signed-off-by: Keith Zantow <kzantow@gmail.com> Co-authored-by: Keith Zantow <kzantow@gmail.com>
26 lines
778 B
Go
26 lines
778 B
Go
package options
|
|
|
|
import (
|
|
"github.com/anchore/clio"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/dotnet"
|
|
)
|
|
|
|
type dotnetConfig struct {
|
|
EnableCertificateValidation bool `json:"enable-certificate-validation" yaml:"enable-certificate-validation" mapstructure:"enable-certificate-validation"`
|
|
}
|
|
|
|
var _ interface {
|
|
clio.FieldDescriber
|
|
} = (*dotnetConfig)(nil)
|
|
|
|
func (o *dotnetConfig) DescribeFields(descriptions clio.FieldDescriptionSet) {
|
|
descriptions.Add(&o.EnableCertificateValidation, `enable certificate validation -- this requires an active internet connection to download certificates and CRLs`)
|
|
}
|
|
|
|
func defaultDotnetConfig() dotnetConfig {
|
|
def := dotnet.DefaultCatalogerConfig()
|
|
return dotnetConfig{
|
|
EnableCertificateValidation: def.EnableCertificateValidation,
|
|
}
|
|
}
|