cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

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 CreateLogger(verbose bool) *slog.Logger

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 InitLoggerContext(verbose bool, ctx context.Context) context.Context

func Logger added in v0.1.2

func Logger(ctx *context.Context) *slog.Logger

func ScanReleased added in v0.1.2

func ScanReleased(outDirectory string, options *ScanReleasedOptions, log *slog.Logger, verbose bool) (map[string]map[string]string, error)

func ScanZarfYamlImages added in v0.1.2

func ScanZarfYamlImages(zarfYamlScanOutDir string, options *CommonScanOptions, log *slog.Logger, verbose bool) (map[string]map[string]string, error)

func Verbose added in v0.1.2

func Verbose(ctx *context.Context) bool

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 ImageFetchingOptions struct {
	PublicPackagesPrefix  string
	PrivatePackagesPrefix string
	RepoOwner             string
}

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
}

func (*ScanAndCompareOptions) Run added in v0.1.2

func (options *ScanAndCompareOptions) Run(cmd *cobra.Command, _ []string) error

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
}

Jump to

Keyboard shortcuts

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