cmd

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: AGPL-3.0 Imports: 25 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(ctx *context.Context, 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 BundleGithubOptions added in v0.1.3

type BundleGithubOptions BundleOptions

type BundleGitlabOptions added in v0.1.3

type BundleGitlabOptions BundleOptions

type BundleOptions added in v0.1.3

type BundleOptions struct {
	// contains filtered or unexported fields
}

type CheckBundleOptions added in v0.1.3

type CheckBundleOptions struct {
	// contains filtered or unexported fields
}

type CheckOptions added in v0.1.3

type CheckOptions struct {
	// contains filtered or unexported fields
}

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 GithubReleaseOptions added in v0.1.3

type GithubReleaseOptions ReleaseOptions

type GitlabReleaseOptions added in v0.1.3

type GitlabReleaseOptions ReleaseOptions

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 ReleaseOptions added in v0.1.3

type ReleaseOptions struct {
	// contains filtered or unexported fields
}

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
}

type ShowBundleOptions added in v0.1.3

type ShowBundleOptions struct {
	// contains filtered or unexported fields
}

type ShowOptions added in v0.1.3

type ShowOptions struct {
	// contains filtered or unexported fields
}

type UpdateBundleYamlOptions added in v0.1.3

type UpdateBundleYamlOptions struct {
	// contains filtered or unexported fields
}

type UpdateYamlOptions added in v0.1.3

type UpdateYamlOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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