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

     1  package options
     2  
     3  type sourceCfg struct {
     4  	Name    string     `json:"name" yaml:"name" mapstructure:"name"`
     5  	Version string     `json:"version" yaml:"version" mapstructure:"version"`
     6  	File    fileSource `json:"file" yaml:"file" mapstructure:"file"`
     7  }
     8  
     9  type fileSource struct {
    10  	Digests []string `json:"digests" yaml:"digests" mapstructure:"digests"`
    11  }
    12  
    13  func defaultSourceCfg() sourceCfg {
    14  	return sourceCfg{
    15  		File: fileSource{
    16  			Digests: []string{"sha256"},
    17  		},
    18  	}
    19  }