commands

package
v0.25.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MalformedVersionImageConstraintLine = func(line string) error {
		return eris.Errorf("Could not properly split version image constraint line: %s", line)
	}
)

Functions

func BuildSecurityScanReportForRepo

func BuildSecurityScanReportForRepo(tags []string, opts *formatResultsOptions) error

func FormatResultsCommand

func FormatResultsCommand(ctx context.Context, rootFlags *RootOptions) *cobra.Command

FormatResultsCommand Pulls scan results from google cloud bucket during docs generation. Then generates a human-readable single page for all our security scan results.

func GetImagesPerVersionFromFile

func GetImagesPerVersionFromFile(constraintsFile string) (map[string][]string, error)

GetImagesPerVersionFromFile Reads in a file, and tries to turn it into a map from version constraints to lists of images As a byproduct, it also caches all unique images found into the option field 'allImages' Also, I'm not sure why I didn't just use a csv reader... oh well.

func GetSecurityScanReport

func GetSecurityScanReport(url string) (string, error)

func RootCommand

func RootCommand(ctx context.Context) *cobra.Command

RootCommand configure the CLIs, including possible commands and input args.

func ScanRepoCommand

func ScanRepoCommand(ctx context.Context, rootOptions *RootOptions) *cobra.Command

func ScanVersionCommand

func ScanVersionCommand(ctx context.Context, rootOptions *RootOptions) *cobra.Command

Types

type RootOptions

type RootOptions struct {
	Verbose bool
}

func (*RootOptions) AddToFlags

func (r *RootOptions) AddToFlags(flags *pflag.FlagSet)

Jump to

Keyboard shortcuts

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