mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
18 lines
346 B
Go
18 lines
346 B
Go
package config
|
|
|
|
import (
|
|
"github.com/spf13/viper"
|
|
)
|
|
|
|
type fileMetadata struct {
|
|
Digests []string `yaml:"digests" json:"digests" mapstructure:"digests"`
|
|
}
|
|
|
|
func (cfg fileMetadata) loadDefaultValues(v *viper.Viper) {
|
|
v.SetDefault("file-metadata.digests", []string{"sha256"})
|
|
}
|
|
|
|
func (cfg *fileMetadata) parseConfigValues() error {
|
|
return nil
|
|
}
|