Documentation
¶
Index ¶
- Variables
- func CreateLogger(verbose bool) *slog.Logger
- func Execute()
- func InitLoggerContext(verbose bool, ctx context.Context) context.Context
- func Logger(ctx *context.Context) *slog.Logger
- func ScanReleased(outDirectory string, options *ScanReleasedOptions, log *slog.Logger, ...) (map[string]map[string]string, error)
- func ScanZarfYamlImages(zarfYamlScanOutDir string, options *CommonScanOptions, log *slog.Logger, ...) (map[string]map[string]string, error)
- func Verbose(ctx *context.Context) bool
- type CommonScanOptions
- type CompareOptions
- type ImageFetchingOptions
- type PackageWithVersion
- type ScanAndCompareOptions
- type ScanReleasedOptions
- type ScanZarfYamlOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var FetchSboms = utils.FetchSboms
View Source
var NewGithubClient = createGithubClient
NewGithubClient exposed for testing purposes
Functions ¶
func CreateLogger ¶ added in v0.1.2
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func InitLoggerContext ¶ added in v0.1.2
func ScanReleased ¶ added in v0.1.2
func ScanZarfYamlImages ¶ added in v0.1.2
Types ¶
type CommonScanOptions ¶ added in v0.1.2
type CommonScanOptions struct {
OutputDirectory string
DevNoCleanUp bool
ZarfYamlLocation string
ExecCommand utils.RunProcess
}
type CompareOptions ¶ added in v0.1.2
type CompareOptions struct {
AllowDifferentImages bool
}
command options
type ImageFetchingOptions ¶ added in v0.1.2
type PackageWithVersion ¶ added in v0.1.2
type PackageWithVersion struct {
// contains filtered or unexported fields
}
helper structs
type ScanAndCompareOptions ¶ added in v0.1.2
type ScanAndCompareOptions struct {
Scan ScanReleasedOptions
Compare CompareOptions
ScanAndCompareOutputFile string
ImageNameOverrides []string
}
type ScanReleasedOptions ¶ added in v0.1.2
type ScanReleasedOptions struct {
Scan CommonScanOptions
Fetch ImageFetchingOptions
}
type ScanZarfYamlOptions ¶ added in v0.1.2
type ScanZarfYamlOptions struct {
Scan CommonScanOptions
}
Click to show internal directories.
Click to hide internal directories.