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
420 B
Go
20 lines
420 B
Go
package options
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/source"
|
|
)
|
|
|
|
type fileMetadata struct {
|
|
Cataloger scope `yaml:"cataloger" json:"cataloger" mapstructure:"cataloger"`
|
|
Digests []string `yaml:"digests" json:"digests" mapstructure:"digests"`
|
|
}
|
|
|
|
func defaultFileMetadata() fileMetadata {
|
|
return fileMetadata{
|
|
Cataloger: scope{
|
|
Scope: source.SquashedScope.String(),
|
|
},
|
|
Digests: []string{"sha256"},
|
|
}
|
|
}
|