Documentation
¶
Index ¶
- Variables
- type PackageSummary
- func (*PackageSummary) Descriptor() ([]byte, []int)deprecated
- func (x *PackageSummary) GetAffectedImports() []*v11.AffectedImport
- func (x *PackageSummary) GetDatabaseSpecific() map[string]string
- func (x *PackageSummary) GetFixVersion() string
- func (x *PackageSummary) GetIsDirect() bool
- func (x *PackageSummary) GetPackage() string
- func (x *PackageSummary) GetSampleIds() []string
- func (x *PackageSummary) GetSeverity() string
- func (x *PackageSummary) GetSeverityCounts() map[string]int32
- func (x *PackageSummary) GetSeverityType() string
- func (x *PackageSummary) GetSummary() string
- func (x *PackageSummary) GetVersion() string
- func (x *PackageSummary) GetVulnerabilityCount() int32
- func (*PackageSummary) ProtoMessage()
- func (x *PackageSummary) ProtoReflect() protoreflect.Message
- func (x *PackageSummary) Reset()
- func (x *PackageSummary) String() string
- type TriageOptions
- func (*TriageOptions) Descriptor() ([]byte, []int)deprecated
- func (x *TriageOptions) GetEcosystems() []string
- func (x *TriageOptions) GetIgnoreUnfixed() bool
- func (x *TriageOptions) GetMaxPackages() int32
- func (x *TriageOptions) GetPublishedAfter() *timestamppb.Timestamp
- func (x *TriageOptions) GetPublishedBefore() *timestamppb.Timestamp
- func (x *TriageOptions) GetRef() string
- func (*TriageOptions) ProtoMessage()
- func (x *TriageOptions) ProtoReflect() protoreflect.Message
- func (x *TriageOptions) Reset()
- func (x *TriageOptions) String() string
- type TriageRequest
- func (*TriageRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TriageRequest) GetOptions() *TriageOptions
- func (x *TriageRequest) GetTarget() string
- func (*TriageRequest) ProtoMessage()
- func (x *TriageRequest) ProtoReflect() protoreflect.Message
- func (x *TriageRequest) Reset()
- func (x *TriageRequest) String() string
- type TriageResponse
- func (*TriageResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TriageResponse) GetGeneratedAt() *timestamppb.Timestamp
- func (x *TriageResponse) GetPackagesWithVulns() int32
- func (x *TriageResponse) GetStats() *v11.Stats
- func (x *TriageResponse) GetTarget() *v1.Target
- func (x *TriageResponse) GetTopPackages() []*PackageSummary
- func (x *TriageResponse) GetWarnings() []string
- func (*TriageResponse) ProtoMessage()
- func (x *TriageResponse) ProtoReflect() protoreflect.Message
- func (x *TriageResponse) Reset()
- func (x *TriageResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_deputy_triage_v1_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PackageSummary ¶
type PackageSummary struct {
// Package is the package name.
Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"`
// Version is the installed version.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// Severity is the highest severity affecting this package.
Severity string `protobuf:"bytes,3,opt,name=severity,proto3" json:"severity,omitempty"`
// SeverityType indicates the severity source (CVSS_V3, CVSS_V2, GHSA, etc.).
SeverityType string `protobuf:"bytes,4,opt,name=severity_type,json=severityType,proto3" json:"severity_type,omitempty"`
// FixVersion is the recommended version to upgrade to.
FixVersion string `protobuf:"bytes,5,opt,name=fix_version,json=fixVersion,proto3" json:"fix_version,omitempty"`
// IsDirect indicates whether this is a direct dependency.
IsDirect bool `protobuf:"varint,6,opt,name=is_direct,json=isDirect,proto3" json:"is_direct,omitempty"`
// Summary is a brief description of the most critical vulnerability.
Summary string `protobuf:"bytes,7,opt,name=summary,proto3" json:"summary,omitempty"`
// SampleIds contains example vulnerability IDs (CVE/GHSA) affecting this package.
SampleIds []string `protobuf:"bytes,8,rep,name=sample_ids,json=sampleIds,proto3" json:"sample_ids,omitempty"`
// AffectedImports lists vulnerable imports/symbols (primarily for Go).
AffectedImports []*v11.AffectedImport `protobuf:"bytes,9,rep,name=affected_imports,json=affectedImports,proto3" json:"affected_imports,omitempty"`
// DatabaseSpecific contains ecosystem-specific metadata (e.g., review_status).
DatabaseSpecific map[string]string `` /* 184-byte string literal not displayed */
// VulnerabilityCount is the total number of vulnerabilities in this package.
VulnerabilityCount int32 `protobuf:"varint,11,opt,name=vulnerability_count,json=vulnerabilityCount,proto3" json:"vulnerability_count,omitempty"`
// SeverityCounts maps severity level to count (CRITICAL, HIGH, MED, LOW).
SeverityCounts map[string]int32 `` /* 179-byte string literal not displayed */
// contains filtered or unexported fields
}
PackageSummary represents a summary of a single package's vulnerabilities.
func (*PackageSummary) Descriptor
deprecated
func (*PackageSummary) Descriptor() ([]byte, []int)
Deprecated: Use PackageSummary.ProtoReflect.Descriptor instead.
func (*PackageSummary) GetAffectedImports ¶
func (x *PackageSummary) GetAffectedImports() []*v11.AffectedImport
func (*PackageSummary) GetDatabaseSpecific ¶
func (x *PackageSummary) GetDatabaseSpecific() map[string]string
func (*PackageSummary) GetFixVersion ¶
func (x *PackageSummary) GetFixVersion() string
func (*PackageSummary) GetIsDirect ¶
func (x *PackageSummary) GetIsDirect() bool
func (*PackageSummary) GetPackage ¶
func (x *PackageSummary) GetPackage() string
func (*PackageSummary) GetSampleIds ¶
func (x *PackageSummary) GetSampleIds() []string
func (*PackageSummary) GetSeverity ¶
func (x *PackageSummary) GetSeverity() string
func (*PackageSummary) GetSeverityCounts ¶
func (x *PackageSummary) GetSeverityCounts() map[string]int32
func (*PackageSummary) GetSeverityType ¶
func (x *PackageSummary) GetSeverityType() string
func (*PackageSummary) GetSummary ¶
func (x *PackageSummary) GetSummary() string
func (*PackageSummary) GetVersion ¶
func (x *PackageSummary) GetVersion() string
func (*PackageSummary) GetVulnerabilityCount ¶
func (x *PackageSummary) GetVulnerabilityCount() int32
func (*PackageSummary) ProtoMessage ¶
func (*PackageSummary) ProtoMessage()
func (*PackageSummary) ProtoReflect ¶
func (x *PackageSummary) ProtoReflect() protoreflect.Message
func (*PackageSummary) Reset ¶
func (x *PackageSummary) Reset()
func (*PackageSummary) String ¶
func (x *PackageSummary) String() string
type TriageOptions ¶
type TriageOptions struct {
// Ecosystems filters to specific package ecosystems.
Ecosystems []string `protobuf:"bytes,1,rep,name=ecosystems,proto3" json:"ecosystems,omitempty"`
// PublishedBefore filters to vulnerabilities published before this timestamp.
PublishedBefore *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=published_before,json=publishedBefore,proto3" json:"published_before,omitempty"`
// PublishedAfter filters to vulnerabilities published after this timestamp.
PublishedAfter *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=published_after,json=publishedAfter,proto3" json:"published_after,omitempty"`
// IgnoreUnfixed excludes vulnerabilities without available fixes.
IgnoreUnfixed bool `protobuf:"varint,4,opt,name=ignore_unfixed,json=ignoreUnfixed,proto3" json:"ignore_unfixed,omitempty"`
// Ref is a Git reference to scan (branch, tag, commit).
Ref string `protobuf:"bytes,5,opt,name=ref,proto3" json:"ref,omitempty"`
// MaxPackages limits the number of packages in the summary (default: 10).
MaxPackages int32 `protobuf:"varint,6,opt,name=max_packages,json=maxPackages,proto3" json:"max_packages,omitempty"`
// contains filtered or unexported fields
}
TriageOptions configures triage behavior.
func (*TriageOptions) Descriptor
deprecated
func (*TriageOptions) Descriptor() ([]byte, []int)
Deprecated: Use TriageOptions.ProtoReflect.Descriptor instead.
func (*TriageOptions) GetEcosystems ¶
func (x *TriageOptions) GetEcosystems() []string
func (*TriageOptions) GetIgnoreUnfixed ¶
func (x *TriageOptions) GetIgnoreUnfixed() bool
func (*TriageOptions) GetMaxPackages ¶
func (x *TriageOptions) GetMaxPackages() int32
func (*TriageOptions) GetPublishedAfter ¶
func (x *TriageOptions) GetPublishedAfter() *timestamppb.Timestamp
func (*TriageOptions) GetPublishedBefore ¶
func (x *TriageOptions) GetPublishedBefore() *timestamppb.Timestamp
func (*TriageOptions) GetRef ¶
func (x *TriageOptions) GetRef() string
func (*TriageOptions) ProtoMessage ¶
func (*TriageOptions) ProtoMessage()
func (*TriageOptions) ProtoReflect ¶
func (x *TriageOptions) ProtoReflect() protoreflect.Message
func (*TriageOptions) Reset ¶
func (x *TriageOptions) Reset()
func (*TriageOptions) String ¶
func (x *TriageOptions) String() string
type TriageRequest ¶
type TriageRequest struct {
// Target is the scan target (path, URL, image reference, etc.).
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// Options configure triage behavior.
Options *TriageOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
// contains filtered or unexported fields
}
TriageRequest specifies what to triage and how.
func (*TriageRequest) Descriptor
deprecated
func (*TriageRequest) Descriptor() ([]byte, []int)
Deprecated: Use TriageRequest.ProtoReflect.Descriptor instead.
func (*TriageRequest) GetOptions ¶
func (x *TriageRequest) GetOptions() *TriageOptions
func (*TriageRequest) GetTarget ¶
func (x *TriageRequest) GetTarget() string
func (*TriageRequest) ProtoMessage ¶
func (*TriageRequest) ProtoMessage()
func (*TriageRequest) ProtoReflect ¶
func (x *TriageRequest) ProtoReflect() protoreflect.Message
func (*TriageRequest) Reset ¶
func (x *TriageRequest) Reset()
func (*TriageRequest) String ¶
func (x *TriageRequest) String() string
type TriageResponse ¶
type TriageResponse struct {
// Target describes what was triaged.
Target *v1.Target `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
// Stats summarizes vulnerability counts.
Stats *v11.Stats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"`
// TopPackages are the most important packages to address, sorted by priority.
TopPackages []*PackageSummary `protobuf:"bytes,3,rep,name=top_packages,json=topPackages,proto3" json:"top_packages,omitempty"`
// PackagesWithVulns is the total number of packages with vulnerabilities.
PackagesWithVulns int32 `protobuf:"varint,4,opt,name=packages_with_vulns,json=packagesWithVulns,proto3" json:"packages_with_vulns,omitempty"`
// GeneratedAt is when this triage was performed.
GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
// Warnings contains non-fatal issues encountered during triage.
Warnings []string `protobuf:"bytes,6,rep,name=warnings,proto3" json:"warnings,omitempty"`
// contains filtered or unexported fields
}
TriageResponse contains the triage analysis results.
func (*TriageResponse) Descriptor
deprecated
func (*TriageResponse) Descriptor() ([]byte, []int)
Deprecated: Use TriageResponse.ProtoReflect.Descriptor instead.
func (*TriageResponse) GetGeneratedAt ¶
func (x *TriageResponse) GetGeneratedAt() *timestamppb.Timestamp
func (*TriageResponse) GetPackagesWithVulns ¶
func (x *TriageResponse) GetPackagesWithVulns() int32
func (*TriageResponse) GetStats ¶
func (x *TriageResponse) GetStats() *v11.Stats
func (*TriageResponse) GetTarget ¶
func (x *TriageResponse) GetTarget() *v1.Target
func (*TriageResponse) GetTopPackages ¶
func (x *TriageResponse) GetTopPackages() []*PackageSummary
func (*TriageResponse) GetWarnings ¶
func (x *TriageResponse) GetWarnings() []string
func (*TriageResponse) ProtoMessage ¶
func (*TriageResponse) ProtoMessage()
func (*TriageResponse) ProtoReflect ¶
func (x *TriageResponse) ProtoReflect() protoreflect.Message
func (*TriageResponse) Reset ¶
func (x *TriageResponse) Reset()
func (*TriageResponse) String ¶
func (x *TriageResponse) String() string
Click to show internal directories.
Click to hide internal directories.