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(ctx *context.Context, outDirectory string, options *ScanReleasedOptions, ...) (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 BundleGithubOptions
- type BundleGitlabOptions
- type BundleOptions
- type CheckBundleOptions
- type CheckOptions
- type CommonScanOptions
- type CompareOptions
- type GithubReleaseOptions
- type GitlabReleaseOptions
- type ImageFetchingOptions
- type PackageWithVersion
- type ReleaseOptions
- type ScanAndCompareOptions
- type ScanReleasedOptions
- type ScanZarfYamlOptions
- type ShowBundleOptions
- type ShowOptions
- type UpdateBundleYamlOptions
- type UpdateYamlOptions
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 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 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
}
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
}
Click to show internal directories.
Click to hide internal directories.