Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface {
Scan(imageRef ImageRef) (ScanReport, error)
}
Command represents the CLI interface for the Khulnasoft Enterprise scanner, i.e. scannercli executable.
func NewCommand ¶
func NewCommand(cfg etc.KhulnasoftCSP, ambassador ext.Ambassador) Command
NewCommand constructs Khulnasoft Enterprise scanner command with the given configuration.
type ImageRef ¶
type ImageRef struct { Repository string Tag string Digest string Auth RegistryAuth }
func (*ImageRef) WithDigest ¶
type MockCommand ¶
func (*MockCommand) Scan ¶
func (c *MockCommand) Scan(imageRef ImageRef) (ScanReport, error)
type RegistryAuth ¶
type ResourceScan ¶
type ResourceScan struct { Resource Resource `json:"resource"` Scanned bool `json:"scanned"` Vulnerabilities []Vulnerability `json:"vulnerabilities"` }
type ScanOptions ¶
type ScanOptions struct { ScanExecutables bool `json:"scan_executables"` ShowWillNotFix bool `json:"show_will_not_fix"` StrictScan bool `json:"strict_scan"` ScanMalware bool `json:"scan_malware"` ScanFiles bool `json:"scan_files"` ManualPullFallback bool `json:"manual_pull_fallback"` SaveAdHockScans bool `json:"save_adhoc_scans"` Dockerless bool `json:"dockerless"` EnableFastScanning bool `json:"enable_fast_scanning"` SuggestOSUpgrade bool `json:"suggest_os_upgrade"` IncludeSiblingAdvisories bool `json:"include_sibling_advisories"` UseCVSS3 bool `json:"use_cvss3"` }
type ScanReport ¶
type ScanReport struct { Image string `json:"image"` Registry string `json:"registry"` Digest string `json:"digest"` PullName string `json:"pull_name"` OS string `json:"os"` Version string `json:"version"` PartialResults bool `json:"partial_results"` ChangedResults bool `json:"changed_results"` InitiatingUser string `json:"initiating_user"` Resources []ResourceScan `json:"resources"` Summary Summary `json:"vulnerability_summary"` ScanOptions ScanOptions `json:"scan_options"` }
type Vulnerability ¶
type Vulnerability struct { Name string `json:"name"` Description string `json:"description"` NVDURL string `json:"nvd_url"` VendorURL string `json:"vendor_url"` FixVersion string `json:"fix_version"` KhulnasoftScore float32 `json:"khulnasoft_score"` KhulnasoftSeverity string `json:"khulnasoft_severity"` KhulnasoftVectors string `json:"khulnasoft_vectors"` KhulnasoftScoringSystem string `json:"khulnasoft_scoring_system"` }
Click to show internal directories.
Click to hide internal directories.