commands

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateXrayServiceManager

func CreateXrayServiceManager(serviceDetails *config.ServerDetails) (*xray.XrayServicesManager, error)

func RunScanGraphAndGetResults added in v2.5.0

func RunScanGraphAndGetResults(serverDetails *config.ServerDetails, params services.XrayGraphScanParams, includeVulnerabilities, includeLicenses bool) (*services.ScanResponse, error)

Types

type FileContext added in v2.5.0

type FileContext func(string) parallel.TaskFunc

type OutputFormat added in v2.5.0

type OutputFormat string
const (
	// OutputFormat values
	Table OutputFormat = "table"
	Json  OutputFormat = "json"
)

type ScanCommand added in v2.5.0

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

func NewScanCommand added in v2.5.0

func NewScanCommand() *ScanCommand

func (*ScanCommand) CommandName added in v2.5.0

func (scanCmd *ScanCommand) CommandName() string

func (*ScanCommand) IsScanPassed added in v2.5.0

func (scanCmd *ScanCommand) IsScanPassed() bool

func (*ScanCommand) Run added in v2.5.0

func (scanCmd *ScanCommand) Run() (err error)

func (*ScanCommand) ServerDetails added in v2.5.0

func (scanCmd *ScanCommand) ServerDetails() (*config.ServerDetails, error)

func (*ScanCommand) SetIncludeLicenses added in v2.5.0

func (scanCmd *ScanCommand) SetIncludeLicenses(include bool) *ScanCommand

func (*ScanCommand) SetIncludeVulnerabilities added in v2.5.0

func (scanCmd *ScanCommand) SetIncludeVulnerabilities(include bool) *ScanCommand

func (*ScanCommand) SetOutputFormat added in v2.5.0

func (scanCmd *ScanCommand) SetOutputFormat(format OutputFormat) *ScanCommand

func (*ScanCommand) SetProject added in v2.5.0

func (scanCmd *ScanCommand) SetProject(project string) *ScanCommand

func (*ScanCommand) SetServerDetails added in v2.5.0

func (scanCmd *ScanCommand) SetServerDetails(server *config.ServerDetails) *ScanCommand

func (*ScanCommand) SetSpec added in v2.5.0

func (scanCmd *ScanCommand) SetSpec(spec *spec.SpecFiles) *ScanCommand

func (*ScanCommand) SetThreads added in v2.5.0

func (scanCmd *ScanCommand) SetThreads(threads int) *ScanCommand

func (*ScanCommand) SetWatches added in v2.5.0

func (scanCmd *ScanCommand) SetWatches(watches []string) *ScanCommand

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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