Documentation ¶
Index ¶
- func CreateXrayServiceManager(serviceDetails *config.ServerDetails) (*xray.XrayServicesManager, error)
- func RunScanGraphAndGetResults(serverDetails *config.ServerDetails, params services.XrayGraphScanParams, ...) (*services.ScanResponse, error)
- type FileContext
- type OutputFormat
- type ScanCommand
- func (scanCmd *ScanCommand) CommandName() string
- func (scanCmd *ScanCommand) IsScanPassed() bool
- func (scanCmd *ScanCommand) Run() (err error)
- func (scanCmd *ScanCommand) ServerDetails() (*config.ServerDetails, error)
- func (scanCmd *ScanCommand) SetIncludeLicenses(include bool) *ScanCommand
- func (scanCmd *ScanCommand) SetIncludeVulnerabilities(include bool) *ScanCommand
- func (scanCmd *ScanCommand) SetOutputFormat(format OutputFormat) *ScanCommand
- func (scanCmd *ScanCommand) SetProject(project string) *ScanCommand
- func (scanCmd *ScanCommand) SetServerDetails(server *config.ServerDetails) *ScanCommand
- func (scanCmd *ScanCommand) SetSpec(spec *spec.SpecFiles) *ScanCommand
- func (scanCmd *ScanCommand) SetThreads(threads int) *ScanCommand
- func (scanCmd *ScanCommand) SetWatches(watches []string) *ScanCommand
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 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
Click to show internal directories.
Click to hide internal directories.