Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { Package pkg `yaml:"package" json:"package" mapstructure:"package"` // package cataloging related options Exclusions []string `yaml:"exclude" json:"exclude" mapstructure:"exclude"` // --exclude, ignore paths within an image Platform string `yaml:"platform" json:"platform" mapstructure:"platform"` // --platform, override OS and architecture from image Output string `yaml:"output" json:"output" mapstructure:"output"` // --output, the file to write report output to Format string `yaml:"format" json:"format" mapstructure:"format"` // --format, the format to use for output Quiet bool `yaml:"quiet" json:"quiet" mapstructure:"quiet"` // -q, indicates to not show any status output to stderr (ETUI or logging UI) Log logging `yaml:"log" json:"log" mapstructure:"log"` // all logging-related options Debug bool `yaml:"debug" json:"debug" mapstructure:"debug"` // -D/--debug, enable debug logging }
Application is the main syft application configuration.
func LoadApplicationConfig ¶
func LoadApplicationConfig(v *viper.Viper) (*Application, error)
LoadApplicationConfig populates the given viper object with a default application config values
func (Application) String ¶
func (cfg Application) String() string
Click to show internal directories.
Click to hide internal directories.