github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/cmd/syft/cli/options/file_metadata.go (about)

     1  package options
     2  
     3  import (
     4  	"github.com/anchore/syft/syft/source"
     5  )
     6  
     7  type fileMetadata struct {
     8  	Cataloger scope    `yaml:"cataloger" json:"cataloger" mapstructure:"cataloger"`
     9  	Digests   []string `yaml:"digests" json:"digests" mapstructure:"digests"`
    10  }
    11  
    12  func defaultFileMetadata() fileMetadata {
    13  	return fileMetadata{
    14  		Cataloger: scope{
    15  			Scope: source.SquashedScope.String(),
    16  		},
    17  		Digests: []string{"sha256"},
    18  	}
    19  }