config

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL