Versions in this module Expand all Collapse all v0 v0.17.0 Dec 5, 2025 Changes in this version + const PolicyViolationActionFailBuild + const PolicyViolationActionIgnore + var DefaultConfig = Config + type Component struct + Group string + Hashes map[string]string + Id string + Internal bool + Name string + PackageURL string + Type string + Version string + type Config struct + Endpoint string + Namespace string + Token string + type FileSource func(w io.Writer) error + type Namespace struct + Space string + TenantId string + type ObserverClient struct + Config Config + func NewObserverClient() *ObserverClient + func NewObserverClientWithConfig(config Config) *ObserverClient + func (c *ObserverClient) AnalyzeSBOM(filename string) (*SpeculateResponse, error) + func (c *ObserverClient) UploadDirectory(directoryPath string, fields map[string]string) error + func (c *ObserverClient) UploadFile(filename string, fields map[string]string) error + func (c *ObserverClient) UploadSource(filename string, source FileSource, fields map[string]string) error + type PolicyViolation struct + Action string + Details string + Link string + Message string + PolicyName string + Severity float64 + Violator PolicyViolator + type PolicyViolator struct + Group string + Id string + Name string + Type string + Version string + type SeveritySummary struct + Critical int + High int + Low int + Moderate int + NoRisk int + Total int + type SpeculateResponse struct + ComponentsCount int + LicenseSummary []SummaryLicense + Namespace Namespace + Subject Component + Violations []PolicyViolation + ViolationsSummary SeveritySummary + Vulnerabilities []SpeculateVulnerabilitySummary + VulnerabilitiesSummary SeveritySummary + VulnerableComponentsCount int + type SpeculateVulnerabilitySummary struct + Analysis *VulnerabilityAnalysis + Description string + EPSS float32 + Ecosystem string + LastModified *time.Time + PackageName string + PackageVersion string + PatchAvailable bool + PatchedVersions []string + Published *time.Time + Severity float64 + Title string + VendorId string + type SummaryLicense struct + Count int + Id string + Name string + URL string + type VulnerabilityAnalysis struct + Affects []string + Details string + Id string + Justification string + Response []string + State string + UpdatedAt time.Time + Vulnerability string