bd_xray

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DetectOfflineModeFlagName                    = "blackduck.offline.mode"
	BlackDuckURLFlagName                         = "blackduck.url"
	BlackDuckTokenFlagName                       = "blackduck.api.token"
	DetectProjectNameFlagName                    = "detect.project.name"
	DetectVersionNameFlagName                    = "detect.project.version.name"
	CleanupPersistentDockerInspectorServicesName = "cleanup"
)

Variables

This section is empty.

Functions

func BlockOnDoneChan

func BlockOnDoneChan(doneChan chan bool)

func InitAndExecute

func InitAndExecute()

func PrintScanStatusTable

func PrintScanStatusTable(scanStatusRowChan <-chan *ScanStatusRow, printingFinishedChannel chan<- bool)

func RunAndPrintMultipleImageScansConcurrently

func RunAndPrintMultipleImageScansConcurrently(ctx context.Context, cancellationFunc context.CancelFunc, imageList []string, detectPassThroughFlagsMap map[string]interface{}, projectName string, cleanup bool) error

func RunHelmScanCommand

func RunHelmScanCommand(charts []string, ctx context.Context, cancellationFunc context.CancelFunc, commonFlags *CommonFlags, detectPassThroughFlagsMap map[string]interface{}) error

func RunImageScanCommand

func RunImageScanCommand(ctx context.Context, detectClient *detect.Client, fullImageName string, detectPassThroughFlagsMap map[string]interface{}, scanStatusRow *ScanStatusRow, scanStatusRowChan chan *ScanStatusRow, projectName string) error

RunImageScanCommand https://synopsys.atlassian.net/wiki/spaces/INTDOCS/pages/631374044/Detect+Properties

func RunMultipleImageScansConcurrently

func RunMultipleImageScansConcurrently(ctx context.Context, cancellationFunc context.CancelFunc, detectClient *detect.Client, imageList []string, detectPassThroughFlagsMap map[string]interface{}, scanStatusRowChan chan *ScanStatusRow, projectName string) error

func RunNamespaceScanCommand

func RunNamespaceScanCommand(namespace string, ctx context.Context, cancellationFunc context.CancelFunc, commonFlags *CommonFlags, detectPassThroughFlagsMap map[string]interface{}) error

func RunPrinterConcurrently

func RunPrinterConcurrently(cancellationFunc context.CancelFunc, scanStatusTableValues <-chan *ScanStatusRow, doneChan chan<- bool) error

func RunYamlScanCommand

func RunYamlScanCommand(yamlfile string, ctx context.Context, cancellationFunc context.CancelFunc, commonFlags *CommonFlags, detectPassThroughFlagsMap map[string]interface{}) error

func SetupHelmScanCommand

func SetupHelmScanCommand() *cobra.Command

func SetupImageScanCommand

func SetupImageScanCommand() *cobra.Command

func SetupNamespaceScanCommand

func SetupNamespaceScanCommand() *cobra.Command

func SetupRootCommand

func SetupRootCommand() *cobra.Command

func SetupYamlScanCommand

func SetupYamlScanCommand() *cobra.Command

Types

type CommonFlags

type CommonFlags struct {
	DetectOfflineMode                        string
	BlackDuckURL                             string
	BlackDuckToken                           string
	DetectProjectName                        string // TODO: this is handle specially, not just a passthrough
	CleanupPersistentDockerInspectorServices bool
}

type RootFlags

type RootFlags struct {
	LogLevel string
}

type ScanStatusRow

type ScanStatusRow struct {
	ImageName                   string
	ImageTag                    string
	ImageSha                    string
	BlackDuckURL                string
	LatestAvailableImageVersion string
}

Jump to

Keyboard shortcuts

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