Documentation ¶
Index ¶
- Variables
- func BuildSecurityScanReportForRepo(tags []string, opts *formatResultsOptions) error
- func FormatResultsCommand(ctx context.Context, rootFlags *RootOptions) *cobra.Command
- func GetImagesPerVersionFromFile(constraintsFile string) (map[string][]string, error)
- func GetSecurityScanReport(url string) (string, error)
- func RootCommand(ctx context.Context) *cobra.Command
- func ScanRepoCommand(ctx context.Context, rootOptions *RootOptions) *cobra.Command
- func ScanVersionCommand(ctx context.Context, rootOptions *RootOptions) *cobra.Command
- type RootOptions
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 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 ¶
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 RootCommand ¶
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)
Click to show internal directories.
Click to hide internal directories.