Documentation ¶
Index ¶
- Variables
- type Ecosystem
- type InsightLicenseInfo
- type InsightProjectInfo
- func (*InsightProjectInfo) Descriptor() ([]byte, []int)deprecated
- func (x *InsightProjectInfo) GetForks() int32
- func (x *InsightProjectInfo) GetIssues() int32
- func (x *InsightProjectInfo) GetName() string
- func (x *InsightProjectInfo) GetStars() int32
- func (x *InsightProjectInfo) GetType() InsightProjectInfo_Type
- func (x *InsightProjectInfo) GetUrl() string
- func (*InsightProjectInfo) ProtoMessage()
- func (x *InsightProjectInfo) ProtoReflect() protoreflect.Message
- func (x *InsightProjectInfo) Reset()
- func (x *InsightProjectInfo) String() string
- type InsightProjectInfo_Type
- func (InsightProjectInfo_Type) Descriptor() protoreflect.EnumDescriptor
- func (x InsightProjectInfo_Type) Enum() *InsightProjectInfo_Type
- func (InsightProjectInfo_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x InsightProjectInfo_Type) Number() protoreflect.EnumNumber
- func (x InsightProjectInfo_Type) String() string
- func (InsightProjectInfo_Type) Type() protoreflect.EnumType
- type InsightScorecard
- func (*InsightScorecard) Descriptor() ([]byte, []int)deprecated
- func (x *InsightScorecard) GetScore() float32
- func (x *InsightScorecard) GetScores() map[string]float32
- func (*InsightScorecard) ProtoMessage()
- func (x *InsightScorecard) ProtoReflect() protoreflect.Message
- func (x *InsightScorecard) Reset()
- func (x *InsightScorecard) String() string
- type InsightVulnerability
- func (*InsightVulnerability) Descriptor() ([]byte, []int)deprecated
- func (x *InsightVulnerability) GetAliases() []string
- func (x *InsightVulnerability) GetCve() string
- func (x *InsightVulnerability) GetId() string
- func (x *InsightVulnerability) GetSeverities() []*InsightVulnerabilitySeverity
- func (x *InsightVulnerability) GetTitle() string
- func (*InsightVulnerability) ProtoMessage()
- func (x *InsightVulnerability) ProtoReflect() protoreflect.Message
- func (x *InsightVulnerability) Reset()
- func (x *InsightVulnerability) String() string
- type InsightVulnerabilitySeverity
- func (*InsightVulnerabilitySeverity) Descriptor() ([]byte, []int)deprecated
- func (x *InsightVulnerabilitySeverity) GetRisk() InsightVulnerabilitySeverity_Risk
- func (x *InsightVulnerabilitySeverity) GetScore() string
- func (x *InsightVulnerabilitySeverity) GetType() InsightVulnerabilitySeverity_Type
- func (*InsightVulnerabilitySeverity) ProtoMessage()
- func (x *InsightVulnerabilitySeverity) ProtoReflect() protoreflect.Message
- func (x *InsightVulnerabilitySeverity) Reset()
- func (x *InsightVulnerabilitySeverity) String() string
- type InsightVulnerabilitySeverity_Risk
- func (InsightVulnerabilitySeverity_Risk) Descriptor() protoreflect.EnumDescriptor
- func (x InsightVulnerabilitySeverity_Risk) Enum() *InsightVulnerabilitySeverity_Risk
- func (InsightVulnerabilitySeverity_Risk) EnumDescriptor() ([]byte, []int)deprecated
- func (x InsightVulnerabilitySeverity_Risk) Number() protoreflect.EnumNumber
- func (x InsightVulnerabilitySeverity_Risk) String() string
- func (InsightVulnerabilitySeverity_Risk) Type() protoreflect.EnumType
- type InsightVulnerabilitySeverity_Type
- func (InsightVulnerabilitySeverity_Type) Descriptor() protoreflect.EnumDescriptor
- func (x InsightVulnerabilitySeverity_Type) Enum() *InsightVulnerabilitySeverity_Type
- func (InsightVulnerabilitySeverity_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x InsightVulnerabilitySeverity_Type) Number() protoreflect.EnumNumber
- func (x InsightVulnerabilitySeverity_Type) String() string
- func (InsightVulnerabilitySeverity_Type) Type() protoreflect.EnumType
- type Package
- func (*Package) Descriptor() ([]byte, []int)deprecated
- func (x *Package) GetEcosystem() Ecosystem
- func (x *Package) GetName() string
- func (x *Package) GetVersion() string
- func (*Package) ProtoMessage()
- func (x *Package) ProtoReflect() protoreflect.Message
- func (x *Package) Reset()
- func (x *Package) String() string
- type PackageManifest
- func (*PackageManifest) Descriptor() ([]byte, []int)deprecated
- func (x *PackageManifest) GetEcosystem() Ecosystem
- func (x *PackageManifest) GetPackages() []*Package
- func (x *PackageManifest) GetPath() string
- func (*PackageManifest) ProtoMessage()
- func (x *PackageManifest) ProtoReflect() protoreflect.Message
- func (x *PackageManifest) Reset()
- func (x *PackageManifest) String() string
Constants ¶
This section is empty.
Variables ¶
var ( InsightVulnerabilitySeverity_Type_name = map[int32]string{ 0: "UNKNOWN_TYPE", 1: "CVSSV2", 2: "CVSSV3", } InsightVulnerabilitySeverity_Type_value = map[string]int32{ "UNKNOWN_TYPE": 0, "CVSSV2": 1, "CVSSV3": 2, } )
Enum value maps for InsightVulnerabilitySeverity_Type.
var ( InsightVulnerabilitySeverity_Risk_name = map[int32]string{ 0: "UNKNOWN_RISK", 1: "LOW", 2: "MEDIUM", 3: "HIGH", 4: "CRITICAL", } InsightVulnerabilitySeverity_Risk_value = map[string]int32{ "UNKNOWN_RISK": 0, "LOW": 1, "MEDIUM": 2, "HIGH": 3, "CRITICAL": 4, } )
Enum value maps for InsightVulnerabilitySeverity_Risk.
var ( InsightProjectInfo_Type_name = map[int32]string{ 0: "UNKNOWN", 1: "GITHUB", } InsightProjectInfo_Type_value = map[string]int32{ "UNKNOWN": 0, "GITHUB": 1, } )
Enum value maps for InsightProjectInfo_Type.
var ( Ecosystem_name = map[int32]string{ 0: "UNKNOWN_ECOSYSTEM", 1: "Maven", 2: "RubyGems", 3: "Go", 4: "Npm", 5: "PyPI", 6: "Cargo", 7: "NuGet", 8: "Packagist", 9: "Hex", 10: "Pub", 11: "CycloneDxSBOM", 12: "SpdxSBOM", } Ecosystem_value = map[string]int32{ "UNKNOWN_ECOSYSTEM": 0, "Maven": 1, "RubyGems": 2, "Go": 3, "Npm": 4, "PyPI": 5, "Cargo": 6, "NuGet": 7, "Packagist": 8, "Hex": 9, "Pub": 10, "CycloneDxSBOM": 11, "SpdxSBOM": 12, } )
Enum value maps for Ecosystem.
var File_insights_models_proto protoreflect.FileDescriptor
var File_models_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Ecosystem ¶
type Ecosystem int32
const ( Ecosystem_UNKNOWN_ECOSYSTEM Ecosystem = 0 Ecosystem_Maven Ecosystem = 1 Ecosystem_RubyGems Ecosystem = 2 Ecosystem_Go Ecosystem = 3 Ecosystem_Npm Ecosystem = 4 Ecosystem_PyPI Ecosystem = 5 Ecosystem_Cargo Ecosystem = 6 Ecosystem_NuGet Ecosystem = 7 Ecosystem_Packagist Ecosystem = 8 Ecosystem_Hex Ecosystem = 9 Ecosystem_Pub Ecosystem = 10 Ecosystem_CycloneDxSBOM Ecosystem = 11 Ecosystem_SpdxSBOM Ecosystem = 12 )
func (Ecosystem) Descriptor ¶
func (Ecosystem) Descriptor() protoreflect.EnumDescriptor
func (Ecosystem) EnumDescriptor
deprecated
func (Ecosystem) Number ¶
func (x Ecosystem) Number() protoreflect.EnumNumber
func (Ecosystem) Type ¶
func (Ecosystem) Type() protoreflect.EnumType
type InsightLicenseInfo ¶ added in v1.4.0
type InsightLicenseInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // SPDX license ID // contains filtered or unexported fields }
func (*InsightLicenseInfo) Descriptor
deprecated
added in
v1.4.0
func (*InsightLicenseInfo) Descriptor() ([]byte, []int)
Deprecated: Use InsightLicenseInfo.ProtoReflect.Descriptor instead.
func (*InsightLicenseInfo) GetId ¶ added in v1.4.0
func (x *InsightLicenseInfo) GetId() string
func (*InsightLicenseInfo) ProtoMessage ¶ added in v1.4.0
func (*InsightLicenseInfo) ProtoMessage()
func (*InsightLicenseInfo) ProtoReflect ¶ added in v1.4.0
func (x *InsightLicenseInfo) ProtoReflect() protoreflect.Message
func (*InsightLicenseInfo) Reset ¶ added in v1.4.0
func (x *InsightLicenseInfo) Reset()
func (*InsightLicenseInfo) String ¶ added in v1.4.0
func (x *InsightLicenseInfo) String() string
type InsightProjectInfo ¶ added in v1.4.0
type InsightProjectInfo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Type InsightProjectInfo_Type `protobuf:"varint,2,opt,name=type,proto3,enum=InsightProjectInfo_Type" json:"type,omitempty"` Stars int32 `protobuf:"varint,3,opt,name=stars,proto3" json:"stars,omitempty"` Forks int32 `protobuf:"varint,4,opt,name=forks,proto3" json:"forks,omitempty"` Issues int32 `protobuf:"varint,5,opt,name=issues,proto3" json:"issues,omitempty"` Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*InsightProjectInfo) Descriptor
deprecated
added in
v1.4.0
func (*InsightProjectInfo) Descriptor() ([]byte, []int)
Deprecated: Use InsightProjectInfo.ProtoReflect.Descriptor instead.
func (*InsightProjectInfo) GetForks ¶ added in v1.4.0
func (x *InsightProjectInfo) GetForks() int32
func (*InsightProjectInfo) GetIssues ¶ added in v1.4.0
func (x *InsightProjectInfo) GetIssues() int32
func (*InsightProjectInfo) GetName ¶ added in v1.4.0
func (x *InsightProjectInfo) GetName() string
func (*InsightProjectInfo) GetStars ¶ added in v1.4.0
func (x *InsightProjectInfo) GetStars() int32
func (*InsightProjectInfo) GetType ¶ added in v1.4.0
func (x *InsightProjectInfo) GetType() InsightProjectInfo_Type
func (*InsightProjectInfo) GetUrl ¶ added in v1.8.6
func (x *InsightProjectInfo) GetUrl() string
func (*InsightProjectInfo) ProtoMessage ¶ added in v1.4.0
func (*InsightProjectInfo) ProtoMessage()
func (*InsightProjectInfo) ProtoReflect ¶ added in v1.4.0
func (x *InsightProjectInfo) ProtoReflect() protoreflect.Message
func (*InsightProjectInfo) Reset ¶ added in v1.4.0
func (x *InsightProjectInfo) Reset()
func (*InsightProjectInfo) String ¶ added in v1.4.0
func (x *InsightProjectInfo) String() string
type InsightProjectInfo_Type ¶ added in v1.4.0
type InsightProjectInfo_Type int32
const ( InsightProjectInfo_UNKNOWN InsightProjectInfo_Type = 0 InsightProjectInfo_GITHUB InsightProjectInfo_Type = 1 )
func (InsightProjectInfo_Type) Descriptor ¶ added in v1.4.0
func (InsightProjectInfo_Type) Descriptor() protoreflect.EnumDescriptor
func (InsightProjectInfo_Type) Enum ¶ added in v1.4.0
func (x InsightProjectInfo_Type) Enum() *InsightProjectInfo_Type
func (InsightProjectInfo_Type) EnumDescriptor
deprecated
added in
v1.4.0
func (InsightProjectInfo_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use InsightProjectInfo_Type.Descriptor instead.
func (InsightProjectInfo_Type) Number ¶ added in v1.4.0
func (x InsightProjectInfo_Type) Number() protoreflect.EnumNumber
func (InsightProjectInfo_Type) String ¶ added in v1.4.0
func (x InsightProjectInfo_Type) String() string
func (InsightProjectInfo_Type) Type ¶ added in v1.4.0
func (InsightProjectInfo_Type) Type() protoreflect.EnumType
type InsightScorecard ¶ added in v1.4.0
type InsightScorecard struct { Scores map[string]float32 `` /* 155-byte string literal not displayed */ Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"` // contains filtered or unexported fields }
func (*InsightScorecard) Descriptor
deprecated
added in
v1.4.0
func (*InsightScorecard) Descriptor() ([]byte, []int)
Deprecated: Use InsightScorecard.ProtoReflect.Descriptor instead.
func (*InsightScorecard) GetScore ¶ added in v1.4.0
func (x *InsightScorecard) GetScore() float32
func (*InsightScorecard) GetScores ¶ added in v1.4.0
func (x *InsightScorecard) GetScores() map[string]float32
func (*InsightScorecard) ProtoMessage ¶ added in v1.4.0
func (*InsightScorecard) ProtoMessage()
func (*InsightScorecard) ProtoReflect ¶ added in v1.4.0
func (x *InsightScorecard) ProtoReflect() protoreflect.Message
func (*InsightScorecard) Reset ¶ added in v1.4.0
func (x *InsightScorecard) Reset()
func (*InsightScorecard) String ¶ added in v1.4.0
func (x *InsightScorecard) String() string
type InsightVulnerability ¶ added in v1.4.0
type InsightVulnerability struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // OSV ID Cve string `protobuf:"bytes,2,opt,name=cve,proto3" json:"cve,omitempty"` // CVE ID. DO NOT USE THIS outside vet. Its used for internal legacy reason Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Aliases []string `protobuf:"bytes,4,rep,name=aliases,proto3" json:"aliases,omitempty"` // Other IDs for same vuln in different databases Severities []*InsightVulnerabilitySeverity `protobuf:"bytes,5,rep,name=severities,proto3" json:"severities,omitempty"` // contains filtered or unexported fields }
func (*InsightVulnerability) Descriptor
deprecated
added in
v1.4.0
func (*InsightVulnerability) Descriptor() ([]byte, []int)
Deprecated: Use InsightVulnerability.ProtoReflect.Descriptor instead.
func (*InsightVulnerability) GetAliases ¶ added in v1.4.0
func (x *InsightVulnerability) GetAliases() []string
func (*InsightVulnerability) GetCve ¶ added in v1.4.0
func (x *InsightVulnerability) GetCve() string
func (*InsightVulnerability) GetId ¶ added in v1.4.0
func (x *InsightVulnerability) GetId() string
func (*InsightVulnerability) GetSeverities ¶ added in v1.4.0
func (x *InsightVulnerability) GetSeverities() []*InsightVulnerabilitySeverity
func (*InsightVulnerability) GetTitle ¶ added in v1.4.0
func (x *InsightVulnerability) GetTitle() string
func (*InsightVulnerability) ProtoMessage ¶ added in v1.4.0
func (*InsightVulnerability) ProtoMessage()
func (*InsightVulnerability) ProtoReflect ¶ added in v1.4.0
func (x *InsightVulnerability) ProtoReflect() protoreflect.Message
func (*InsightVulnerability) Reset ¶ added in v1.4.0
func (x *InsightVulnerability) Reset()
func (*InsightVulnerability) String ¶ added in v1.4.0
func (x *InsightVulnerability) String() string
type InsightVulnerabilitySeverity ¶ added in v1.4.0
type InsightVulnerabilitySeverity struct { Type InsightVulnerabilitySeverity_Type `protobuf:"varint,1,opt,name=type,proto3,enum=InsightVulnerabilitySeverity_Type" json:"type,omitempty"` Score string `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` // Score based on type (usually the CVSS metric) Risk InsightVulnerabilitySeverity_Risk `protobuf:"varint,3,opt,name=risk,proto3,enum=InsightVulnerabilitySeverity_Risk" json:"risk,omitempty"` // contains filtered or unexported fields }
func (*InsightVulnerabilitySeverity) Descriptor
deprecated
added in
v1.4.0
func (*InsightVulnerabilitySeverity) Descriptor() ([]byte, []int)
Deprecated: Use InsightVulnerabilitySeverity.ProtoReflect.Descriptor instead.
func (*InsightVulnerabilitySeverity) GetRisk ¶ added in v1.4.0
func (x *InsightVulnerabilitySeverity) GetRisk() InsightVulnerabilitySeverity_Risk
func (*InsightVulnerabilitySeverity) GetScore ¶ added in v1.4.0
func (x *InsightVulnerabilitySeverity) GetScore() string
func (*InsightVulnerabilitySeverity) GetType ¶ added in v1.4.0
func (x *InsightVulnerabilitySeverity) GetType() InsightVulnerabilitySeverity_Type
func (*InsightVulnerabilitySeverity) ProtoMessage ¶ added in v1.4.0
func (*InsightVulnerabilitySeverity) ProtoMessage()
func (*InsightVulnerabilitySeverity) ProtoReflect ¶ added in v1.4.0
func (x *InsightVulnerabilitySeverity) ProtoReflect() protoreflect.Message
func (*InsightVulnerabilitySeverity) Reset ¶ added in v1.4.0
func (x *InsightVulnerabilitySeverity) Reset()
func (*InsightVulnerabilitySeverity) String ¶ added in v1.4.0
func (x *InsightVulnerabilitySeverity) String() string
type InsightVulnerabilitySeverity_Risk ¶ added in v1.4.0
type InsightVulnerabilitySeverity_Risk int32
const ( InsightVulnerabilitySeverity_UNKNOWN_RISK InsightVulnerabilitySeverity_Risk = 0 InsightVulnerabilitySeverity_LOW InsightVulnerabilitySeverity_Risk = 1 InsightVulnerabilitySeverity_MEDIUM InsightVulnerabilitySeverity_Risk = 2 InsightVulnerabilitySeverity_HIGH InsightVulnerabilitySeverity_Risk = 3 InsightVulnerabilitySeverity_CRITICAL InsightVulnerabilitySeverity_Risk = 4 )
func (InsightVulnerabilitySeverity_Risk) Descriptor ¶ added in v1.4.0
func (InsightVulnerabilitySeverity_Risk) Descriptor() protoreflect.EnumDescriptor
func (InsightVulnerabilitySeverity_Risk) Enum ¶ added in v1.4.0
func (x InsightVulnerabilitySeverity_Risk) Enum() *InsightVulnerabilitySeverity_Risk
func (InsightVulnerabilitySeverity_Risk) EnumDescriptor
deprecated
added in
v1.4.0
func (InsightVulnerabilitySeverity_Risk) EnumDescriptor() ([]byte, []int)
Deprecated: Use InsightVulnerabilitySeverity_Risk.Descriptor instead.
func (InsightVulnerabilitySeverity_Risk) Number ¶ added in v1.4.0
func (x InsightVulnerabilitySeverity_Risk) Number() protoreflect.EnumNumber
func (InsightVulnerabilitySeverity_Risk) String ¶ added in v1.4.0
func (x InsightVulnerabilitySeverity_Risk) String() string
func (InsightVulnerabilitySeverity_Risk) Type ¶ added in v1.4.0
func (InsightVulnerabilitySeverity_Risk) Type() protoreflect.EnumType
type InsightVulnerabilitySeverity_Type ¶ added in v1.4.0
type InsightVulnerabilitySeverity_Type int32
const ( InsightVulnerabilitySeverity_UNKNOWN_TYPE InsightVulnerabilitySeverity_Type = 0 InsightVulnerabilitySeverity_CVSSV2 InsightVulnerabilitySeverity_Type = 1 InsightVulnerabilitySeverity_CVSSV3 InsightVulnerabilitySeverity_Type = 2 )
func (InsightVulnerabilitySeverity_Type) Descriptor ¶ added in v1.4.0
func (InsightVulnerabilitySeverity_Type) Descriptor() protoreflect.EnumDescriptor
func (InsightVulnerabilitySeverity_Type) Enum ¶ added in v1.4.0
func (x InsightVulnerabilitySeverity_Type) Enum() *InsightVulnerabilitySeverity_Type
func (InsightVulnerabilitySeverity_Type) EnumDescriptor
deprecated
added in
v1.4.0
func (InsightVulnerabilitySeverity_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use InsightVulnerabilitySeverity_Type.Descriptor instead.
func (InsightVulnerabilitySeverity_Type) Number ¶ added in v1.4.0
func (x InsightVulnerabilitySeverity_Type) Number() protoreflect.EnumNumber
func (InsightVulnerabilitySeverity_Type) String ¶ added in v1.4.0
func (x InsightVulnerabilitySeverity_Type) String() string
func (InsightVulnerabilitySeverity_Type) Type ¶ added in v1.4.0
func (InsightVulnerabilitySeverity_Type) Type() protoreflect.EnumType
type Package ¶
type Package struct { Ecosystem Ecosystem `protobuf:"varint,1,opt,name=ecosystem,proto3,enum=Ecosystem" json:"ecosystem,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
func (*Package) Descriptor
deprecated
func (*Package) GetEcosystem ¶
func (*Package) GetVersion ¶
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) ProtoReflect ¶
func (x *Package) ProtoReflect() protoreflect.Message
type PackageManifest ¶
type PackageManifest struct { Ecosystem Ecosystem `protobuf:"varint,1,opt,name=ecosystem,proto3,enum=Ecosystem" json:"ecosystem,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Packages []*Package `protobuf:"bytes,3,rep,name=packages,proto3" json:"packages,omitempty"` // contains filtered or unexported fields }
func (*PackageManifest) Descriptor
deprecated
func (*PackageManifest) Descriptor() ([]byte, []int)
Deprecated: Use PackageManifest.ProtoReflect.Descriptor instead.
func (*PackageManifest) GetEcosystem ¶
func (x *PackageManifest) GetEcosystem() Ecosystem
func (*PackageManifest) GetPackages ¶
func (x *PackageManifest) GetPackages() []*Package
func (*PackageManifest) GetPath ¶
func (x *PackageManifest) GetPath() string
func (*PackageManifest) ProtoMessage ¶
func (*PackageManifest) ProtoMessage()
func (*PackageManifest) ProtoReflect ¶
func (x *PackageManifest) ProtoReflect() protoreflect.Message
func (*PackageManifest) Reset ¶
func (x *PackageManifest) Reset()
func (*PackageManifest) String ¶
func (x *PackageManifest) String() string