mirror of
https://github.com/anchore/syft.git
synced 2025-11-19 09:23:15 +01:00
Signed-off-by: Keith Zantow <kzantow@gmail.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
20 lines
469 B
Go
20 lines
469 B
Go
package options
|
|
|
|
type sourceCfg struct {
|
|
Name string `json:"name" yaml:"name" mapstructure:"name"`
|
|
Version string `json:"version" yaml:"version" mapstructure:"version"`
|
|
File fileSource `json:"file" yaml:"file" mapstructure:"file"`
|
|
}
|
|
|
|
type fileSource struct {
|
|
Digests []string `json:"digests" yaml:"digests" mapstructure:"digests"`
|
|
}
|
|
|
|
func defaultSourceCfg() sourceCfg {
|
|
return sourceCfg{
|
|
File: fileSource{
|
|
Digests: []string{"sha256"},
|
|
},
|
|
}
|
|
}
|