v1

package
v0.1.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1 contains the v1 GRPC client and server definitions for implementing Tenant interactions for the Console.

Index

Constants

This section is empty.

Variables

View Source
var (
	Sbom2_Source_name = map[int32]string{
		0: "UNKNOWN",
		1: "INGESTED",
		2: "GENERATED",
	}
	Sbom2_Source_value = map[string]int32{
		"UNKNOWN":   0,
		"INGESTED":  1,
		"GENERATED": 2,
	}
)

Enum value maps for Sbom2_Source.

View Source
var (
	ComponentGraph_Edge_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "DESCRIBES",
		2: "CONTAINS",
		3: "DEPENDS_ON",
		4: "GENERATED_FROM",
	}
	ComponentGraph_Edge_Type_value = map[string]int32{
		"UNKNOWN":        0,
		"DESCRIBES":      1,
		"CONTAINS":       2,
		"DEPENDS_ON":     3,
		"GENERATED_FROM": 4,
	}
)

Enum value maps for ComponentGraph_Edge_Type.

View Source
var (
	VulnerabilityRecord_Severity_name = map[int32]string{
		0: "UNKNOWN",
		1: "LOW",
		2: "MEDIUM",
		3: "HIGH",
		4: "CRITICAL",
	}
	VulnerabilityRecord_Severity_value = map[string]int32{
		"UNKNOWN":  0,
		"LOW":      1,
		"MEDIUM":   2,
		"HIGH":     3,
		"CRITICAL": 4,
	}
)

Enum value maps for VulnerabilityRecord_Severity.

View Source
var (
	Fix_State_name = map[int32]string{
		0: "UNKNOWN",
		1: "FIXED",
		2: "NOT_FIXED",
		3: "WONT_FIX",
	}
	Fix_State_value = map[string]int32{
		"UNKNOWN":   0,
		"FIXED":     1,
		"NOT_FIXED": 2,
		"WONT_FIX":  3,
	}
)

Enum value maps for Fix_State.

View Source
var File_sbom_platform_proto protoreflect.FileDescriptor
View Source
var File_vuln_platform_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ComponentGraph

type ComponentGraph struct {
	Nodes []*ComponentGraph_Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	Edges []*ComponentGraph_Edge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentGraph) Descriptor deprecated

func (*ComponentGraph) Descriptor() ([]byte, []int)

Deprecated: Use ComponentGraph.ProtoReflect.Descriptor instead.

func (*ComponentGraph) GetEdges

func (x *ComponentGraph) GetEdges() []*ComponentGraph_Edge

func (*ComponentGraph) GetNodes

func (x *ComponentGraph) GetNodes() []*ComponentGraph_Node

func (*ComponentGraph) ProtoMessage

func (*ComponentGraph) ProtoMessage()

func (*ComponentGraph) ProtoReflect

func (x *ComponentGraph) ProtoReflect() protoreflect.Message

func (*ComponentGraph) Reset

func (x *ComponentGraph) Reset()

func (*ComponentGraph) String

func (x *ComponentGraph) String() string

type ComponentGraph_Edge

type ComponentGraph_Edge struct {
	SubjectId   string                   `protobuf:"bytes,1,opt,name=subject_id,json=subjectId,proto3" json:"subject_id,omitempty"`
	PredicateId string                   `protobuf:"bytes,2,opt,name=predicate_id,json=predicateId,proto3" json:"predicate_id,omitempty"`
	Type        ComponentGraph_Edge_Type `protobuf:"varint,3,opt,name=type,proto3,enum=chainguard.platform.tenant.ComponentGraph_Edge_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentGraph_Edge) Descriptor deprecated

func (*ComponentGraph_Edge) Descriptor() ([]byte, []int)

Deprecated: Use ComponentGraph_Edge.ProtoReflect.Descriptor instead.

func (*ComponentGraph_Edge) GetPredicateId

func (x *ComponentGraph_Edge) GetPredicateId() string

func (*ComponentGraph_Edge) GetSubjectId

func (x *ComponentGraph_Edge) GetSubjectId() string

func (*ComponentGraph_Edge) GetType

func (*ComponentGraph_Edge) ProtoMessage

func (*ComponentGraph_Edge) ProtoMessage()

func (*ComponentGraph_Edge) ProtoReflect

func (x *ComponentGraph_Edge) ProtoReflect() protoreflect.Message

func (*ComponentGraph_Edge) Reset

func (x *ComponentGraph_Edge) Reset()

func (*ComponentGraph_Edge) String

func (x *ComponentGraph_Edge) String() string

type ComponentGraph_Edge_Type

type ComponentGraph_Edge_Type int32
const (
	ComponentGraph_Edge_UNKNOWN        ComponentGraph_Edge_Type = 0
	ComponentGraph_Edge_DESCRIBES      ComponentGraph_Edge_Type = 1
	ComponentGraph_Edge_CONTAINS       ComponentGraph_Edge_Type = 2
	ComponentGraph_Edge_DEPENDS_ON     ComponentGraph_Edge_Type = 3
	ComponentGraph_Edge_GENERATED_FROM ComponentGraph_Edge_Type = 4 // and so on...; for inspiration, see https://spdx.github.io/spdx-spec/v2.3/relationships-between-SPDX-elements/
)

func (ComponentGraph_Edge_Type) Descriptor

func (ComponentGraph_Edge_Type) Enum

func (ComponentGraph_Edge_Type) EnumDescriptor deprecated

func (ComponentGraph_Edge_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use ComponentGraph_Edge_Type.Descriptor instead.

func (ComponentGraph_Edge_Type) Number

func (ComponentGraph_Edge_Type) String

func (x ComponentGraph_Edge_Type) String() string

func (ComponentGraph_Edge_Type) Type

type ComponentGraph_Node

type ComponentGraph_Node struct {

	// Types that are assignable to TypedNode:
	//
	//	*ComponentGraph_Node_Package
	//	*ComponentGraph_Node_File
	TypedNode isComponentGraph_Node_TypedNode `protobuf_oneof:"typed_node"`
	// contains filtered or unexported fields
}

func (*ComponentGraph_Node) Descriptor deprecated

func (*ComponentGraph_Node) Descriptor() ([]byte, []int)

Deprecated: Use ComponentGraph_Node.ProtoReflect.Descriptor instead.

func (*ComponentGraph_Node) GetFile

func (x *ComponentGraph_Node) GetFile() *File2

func (*ComponentGraph_Node) GetPackage

func (x *ComponentGraph_Node) GetPackage() *Package2

func (*ComponentGraph_Node) GetTypedNode

func (m *ComponentGraph_Node) GetTypedNode() isComponentGraph_Node_TypedNode

func (*ComponentGraph_Node) ProtoMessage

func (*ComponentGraph_Node) ProtoMessage()

func (*ComponentGraph_Node) ProtoReflect

func (x *ComponentGraph_Node) ProtoReflect() protoreflect.Message

func (*ComponentGraph_Node) Reset

func (x *ComponentGraph_Node) Reset()

func (*ComponentGraph_Node) String

func (x *ComponentGraph_Node) String() string

type ComponentGraph_Node_File

type ComponentGraph_Node_File struct {
	File *File2 `protobuf:"bytes,2,opt,name=file,proto3,oneof"`
}

type ComponentGraph_Node_Package

type ComponentGraph_Node_Package struct {
	Package *Package2 `protobuf:"bytes,1,opt,name=package,proto3,oneof"`
}

type File2

type File2 struct {
	Id    string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Types []string `protobuf:"bytes,4,rep,name=types,proto3" json:"types,omitempty"`
	// contains filtered or unexported fields
}

func (*File2) Descriptor deprecated

func (*File2) Descriptor() ([]byte, []int)

Deprecated: Use File2.ProtoReflect.Descriptor instead.

func (*File2) GetId

func (x *File2) GetId() string

func (*File2) GetName

func (x *File2) GetName() string

func (*File2) GetTypes

func (x *File2) GetTypes() []string

func (*File2) ProtoMessage

func (*File2) ProtoMessage()

func (*File2) ProtoReflect

func (x *File2) ProtoReflect() protoreflect.Message

func (*File2) Reset

func (x *File2) Reset()

func (*File2) String

func (x *File2) String() string

type Fix

type Fix struct {

	// List of in versions of the package on which the vulnerability has been solved.
	Versions []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// state reflects the state of the fix, e.g. fixed, unknown, not-fixed, won't-fix.
	State Fix_State `protobuf:"varint,2,opt,name=state,proto3,enum=chainguard.platform.tenant.Fix_State" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*Fix) Descriptor deprecated

func (*Fix) Descriptor() ([]byte, []int)

Deprecated: Use Fix.ProtoReflect.Descriptor instead.

func (*Fix) GetState

func (x *Fix) GetState() Fix_State

func (*Fix) GetVersions

func (x *Fix) GetVersions() []string

func (*Fix) ProtoMessage

func (*Fix) ProtoMessage()

func (*Fix) ProtoReflect

func (x *Fix) ProtoReflect() protoreflect.Message

func (*Fix) Reset

func (x *Fix) Reset()

func (*Fix) String

func (x *Fix) String() string

type Fix_State

type Fix_State int32
const (
	Fix_UNKNOWN   Fix_State = 0
	Fix_FIXED     Fix_State = 1
	Fix_NOT_FIXED Fix_State = 2
	Fix_WONT_FIX  Fix_State = 3
)

func (Fix_State) Descriptor

func (Fix_State) Descriptor() protoreflect.EnumDescriptor

func (Fix_State) Enum

func (x Fix_State) Enum() *Fix_State

func (Fix_State) EnumDescriptor deprecated

func (Fix_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use Fix_State.Descriptor instead.

func (Fix_State) Number

func (x Fix_State) Number() protoreflect.EnumNumber

func (Fix_State) String

func (x Fix_State) String() string

func (Fix_State) Type

type Package2

type Package2 struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,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"`
	License     string `protobuf:"bytes,4,opt,name=license,proto3" json:"license,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Purl        string `protobuf:"bytes,6,opt,name=purl,proto3" json:"purl,omitempty"`
	// contains filtered or unexported fields
}

func (*Package2) Descriptor deprecated

func (*Package2) Descriptor() ([]byte, []int)

Deprecated: Use Package2.ProtoReflect.Descriptor instead.

func (*Package2) GetDescription

func (x *Package2) GetDescription() string

func (*Package2) GetId

func (x *Package2) GetId() string

func (*Package2) GetLicense

func (x *Package2) GetLicense() string

func (*Package2) GetName

func (x *Package2) GetName() string

func (*Package2) GetPurl

func (x *Package2) GetPurl() string

func (*Package2) GetVersion

func (x *Package2) GetVersion() string

func (*Package2) ProtoMessage

func (*Package2) ProtoMessage()

func (*Package2) ProtoReflect

func (x *Package2) ProtoReflect() protoreflect.Message

func (*Package2) Reset

func (x *Package2) Reset()

func (*Package2) String

func (x *Package2) String() string

type Sbom2

type Sbom2 struct {

	// id, The Sbom UIDP at which this Sbom resides in the hierarchy.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// raw_sbom may or may not be useful in the long term, but for now to make
	// progress on this, we'll just yolo and serialize it here.
	RawSbom []byte          `protobuf:"bytes,2,opt,name=raw_sbom,json=rawSbom,proto3" json:"raw_sbom,omitempty"`
	Graph   *ComponentGraph `protobuf:"bytes,3,opt,name=graph,proto3" json:"graph,omitempty"`
	// last_seen tracks the timestamp at which this sbom was last seen.
	// TODO(vaikas): Does this really make any sense?
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// tool holds the name of the tool that produced the SBOM.
	Tool string `protobuf:"bytes,5,opt,name=tool,proto3" json:"tool,omitempty"`
	// format holds whether the SBOM is SPDX, CycloneDX, or other.
	Format string `protobuf:"bytes,6,opt,name=format,proto3" json:"format,omitempty"`
	// generated_at holds when the SBOM was generated.
	GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"`
	// authors is zero or more authors concatenated.
	Authors string `protobuf:"bytes,8,opt,name=authors,proto3" json:"authors,omitempty"`
	// source is where the SBOM came from. For example, we want to know if sbom
	// was generated by us, or ingested.
	Source Sbom2_Source `protobuf:"varint,9,opt,name=source,proto3,enum=chainguard.platform.tenant.Sbom2_Source" json:"source,omitempty"`
	// Name of the Sbom.
	Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"`
	// Short description of the Sbom
	Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description,omitempty"`
	// digest of the SBOM when ingested
	Digest *string `protobuf:"bytes,12,opt,name=digest,proto3,oneof" json:"digest,omitempty"`
	// contains filtered or unexported fields
}

Sbom represents a normalized SBOM that we have ingested into our datastore. They are linked to Signatures via ID, as in they are 'children' of Signatures There can be multiple of these that we keep.

func (*Sbom2) Descriptor deprecated

func (*Sbom2) Descriptor() ([]byte, []int)

Deprecated: Use Sbom2.ProtoReflect.Descriptor instead.

func (*Sbom2) GetAuthors

func (x *Sbom2) GetAuthors() string

func (*Sbom2) GetDescription

func (x *Sbom2) GetDescription() string

func (*Sbom2) GetDigest

func (x *Sbom2) GetDigest() string

func (*Sbom2) GetFormat

func (x *Sbom2) GetFormat() string

func (*Sbom2) GetGeneratedAt

func (x *Sbom2) GetGeneratedAt() *timestamppb.Timestamp

func (*Sbom2) GetGraph

func (x *Sbom2) GetGraph() *ComponentGraph

func (*Sbom2) GetId

func (x *Sbom2) GetId() string

func (*Sbom2) GetLastSeen

func (x *Sbom2) GetLastSeen() *timestamppb.Timestamp

func (*Sbom2) GetName

func (x *Sbom2) GetName() string

func (*Sbom2) GetRawSbom

func (x *Sbom2) GetRawSbom() []byte

func (*Sbom2) GetSource

func (x *Sbom2) GetSource() Sbom2_Source

func (*Sbom2) GetTool

func (x *Sbom2) GetTool() string

func (*Sbom2) ProtoMessage

func (*Sbom2) ProtoMessage()

func (*Sbom2) ProtoReflect

func (x *Sbom2) ProtoReflect() protoreflect.Message

func (*Sbom2) Reset

func (x *Sbom2) Reset()

func (*Sbom2) String

func (x *Sbom2) String() string

type Sbom2Filter

type Sbom2Filter struct {

	// id is the exact UID of the record.
	Id   string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uidp *v1.UIDPFilter `protobuf:"bytes,2,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// active_since is the timestamp after which the records should
	// have last been observed in the returned context.
	ActiveSince *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	// include_raw_sbom is a flag to return the raw sbom field in the record.
	IncludeRawSbom bool `protobuf:"varint,4,opt,name=include_raw_sbom,json=includeRawSbom,proto3" json:"include_raw_sbom,omitempty"`
	// contains filtered or unexported fields
}

func (*Sbom2Filter) Descriptor deprecated

func (*Sbom2Filter) Descriptor() ([]byte, []int)

Deprecated: Use Sbom2Filter.ProtoReflect.Descriptor instead.

func (*Sbom2Filter) GetActiveSince

func (x *Sbom2Filter) GetActiveSince() *timestamppb.Timestamp

func (*Sbom2Filter) GetId

func (x *Sbom2Filter) GetId() string

func (*Sbom2Filter) GetIncludeRawSbom

func (x *Sbom2Filter) GetIncludeRawSbom() bool

func (*Sbom2Filter) GetUidp

func (x *Sbom2Filter) GetUidp() *v1.UIDPFilter

func (*Sbom2Filter) ProtoMessage

func (*Sbom2Filter) ProtoMessage()

func (*Sbom2Filter) ProtoReflect

func (x *Sbom2Filter) ProtoReflect() protoreflect.Message

func (*Sbom2Filter) Reset

func (x *Sbom2Filter) Reset()

func (*Sbom2Filter) String

func (x *Sbom2Filter) String() string

type Sbom2List

type Sbom2List struct {
	Items []*Sbom2 `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*Sbom2List) Descriptor deprecated

func (*Sbom2List) Descriptor() ([]byte, []int)

Deprecated: Use Sbom2List.ProtoReflect.Descriptor instead.

func (*Sbom2List) GetItems

func (x *Sbom2List) GetItems() []*Sbom2

func (*Sbom2List) ProtoMessage

func (*Sbom2List) ProtoMessage()

func (*Sbom2List) ProtoReflect

func (x *Sbom2List) ProtoReflect() protoreflect.Message

func (*Sbom2List) Reset

func (x *Sbom2List) Reset()

func (*Sbom2List) String

func (x *Sbom2List) String() string

type Sbom2_Source

type Sbom2_Source int32

Type

const (
	Sbom2_UNKNOWN   Sbom2_Source = 0
	Sbom2_INGESTED  Sbom2_Source = 1
	Sbom2_GENERATED Sbom2_Source = 2
)

func (Sbom2_Source) Descriptor

func (Sbom2_Source) Enum

func (x Sbom2_Source) Enum() *Sbom2_Source

func (Sbom2_Source) EnumDescriptor deprecated

func (Sbom2_Source) EnumDescriptor() ([]byte, []int)

Deprecated: Use Sbom2_Source.Descriptor instead.

func (Sbom2_Source) Number

func (Sbom2_Source) String

func (x Sbom2_Source) String() string

func (Sbom2_Source) Type

type Scanner added in v0.1.15

type Scanner struct {

	// name contains the vendor name of the scanner.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// version holds the version of the used scanner to generate the report.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Scanner) Descriptor deprecated added in v0.1.15

func (*Scanner) Descriptor() ([]byte, []int)

Deprecated: Use Scanner.ProtoReflect.Descriptor instead.

func (*Scanner) GetName added in v0.1.15

func (x *Scanner) GetName() string

func (*Scanner) GetVersion added in v0.1.15

func (x *Scanner) GetVersion() string

func (*Scanner) ProtoMessage added in v0.1.15

func (*Scanner) ProtoMessage()

func (*Scanner) ProtoReflect added in v0.1.15

func (x *Scanner) ProtoReflect() protoreflect.Message

func (*Scanner) Reset added in v0.1.15

func (x *Scanner) Reset()

func (*Scanner) String added in v0.1.15

func (x *Scanner) String() string

type VulnReport

type VulnReport struct {

	// id, The VulnReport UIDP at which this VulnReport resides.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// vulnerability_db_last_build_time holds the time when the vulnerability database was built last time.
	VulnerabilityDbLastBuildTime *timestamppb.Timestamp `` /* 151-byte string literal not displayed */
	// Report's list of vulnerability matches(s).
	VulnerabilityMatches []*VulnerabilityMatch `protobuf:"bytes,3,rep,name=vulnerability_matches,json=vulnerabilityMatches,proto3" json:"vulnerability_matches,omitempty"`
	// scanner contains some information about the scanner used to generate the report.
	Scanner *Scanner `protobuf:"bytes,4,opt,name=scanner,proto3" json:"scanner,omitempty"`
	// report_generation tracks the timestamp at which this report was generated.
	ReportGeneration *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=report_generation,json=reportGeneration,proto3" json:"report_generation,omitempty"`
	// raw_vuln_report may or may not be useful in the long term, but for now to make
	// progress on this, we'll just yolo and serialize it here.
	RawVulnReport []byte `protobuf:"bytes,6,opt,name=raw_vuln_report,json=rawVulnReport,proto3" json:"raw_vuln_report,omitempty"`
	// last_seen tracks the timestamp at which this vuln report was last seen.
	LastSeen *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnReport) Descriptor deprecated

func (*VulnReport) Descriptor() ([]byte, []int)

Deprecated: Use VulnReport.ProtoReflect.Descriptor instead.

func (*VulnReport) GetId

func (x *VulnReport) GetId() string

func (*VulnReport) GetLastSeen

func (x *VulnReport) GetLastSeen() *timestamppb.Timestamp

func (*VulnReport) GetRawVulnReport

func (x *VulnReport) GetRawVulnReport() []byte

func (*VulnReport) GetReportGeneration

func (x *VulnReport) GetReportGeneration() *timestamppb.Timestamp

func (*VulnReport) GetScanner

func (x *VulnReport) GetScanner() *Scanner

func (*VulnReport) GetVulnerabilityDbLastBuildTime

func (x *VulnReport) GetVulnerabilityDbLastBuildTime() *timestamppb.Timestamp

func (*VulnReport) GetVulnerabilityMatches

func (x *VulnReport) GetVulnerabilityMatches() []*VulnerabilityMatch

func (*VulnReport) ProtoMessage

func (*VulnReport) ProtoMessage()

func (*VulnReport) ProtoReflect

func (x *VulnReport) ProtoReflect() protoreflect.Message

func (*VulnReport) Reset

func (x *VulnReport) Reset()

func (*VulnReport) String

func (x *VulnReport) String() string

type VulnReportFilter

type VulnReportFilter struct {

	// id is the exact UID of the record.
	Id   string         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Uidp *v1.UIDPFilter `protobuf:"bytes,2,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// active_since is the timestamp after which the records should
	// have last been observed in the returned context.
	ActiveSince *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"`
	// include_raw_vuln_report is a flag to return a list of reports containing the raw report.
	IncludeRawVulnReport bool `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*VulnReportFilter) Descriptor deprecated

func (*VulnReportFilter) Descriptor() ([]byte, []int)

Deprecated: Use VulnReportFilter.ProtoReflect.Descriptor instead.

func (*VulnReportFilter) GetActiveSince

func (x *VulnReportFilter) GetActiveSince() *timestamppb.Timestamp

func (*VulnReportFilter) GetId

func (x *VulnReportFilter) GetId() string

func (*VulnReportFilter) GetIncludeRawVulnReport

func (x *VulnReportFilter) GetIncludeRawVulnReport() bool

func (*VulnReportFilter) GetUidp

func (x *VulnReportFilter) GetUidp() *v1.UIDPFilter

func (*VulnReportFilter) ProtoMessage

func (*VulnReportFilter) ProtoMessage()

func (*VulnReportFilter) ProtoReflect

func (x *VulnReportFilter) ProtoReflect() protoreflect.Message

func (*VulnReportFilter) Reset

func (x *VulnReportFilter) Reset()

func (*VulnReportFilter) String

func (x *VulnReportFilter) String() string

type VulnReportList

type VulnReportList struct {
	Items []*VulnReport `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnReportList) Descriptor deprecated

func (*VulnReportList) Descriptor() ([]byte, []int)

Deprecated: Use VulnReportList.ProtoReflect.Descriptor instead.

func (*VulnReportList) GetItems

func (x *VulnReportList) GetItems() []*VulnReport

func (*VulnReportList) ProtoMessage

func (*VulnReportList) ProtoMessage()

func (*VulnReportList) ProtoReflect

func (x *VulnReportList) ProtoReflect() protoreflect.Message

func (*VulnReportList) Reset

func (x *VulnReportList) Reset()

func (*VulnReportList) String

func (x *VulnReportList) String() string

type VulnerabilityMatch

type VulnerabilityMatch struct {

	// Vulnerability holds information about the found vulnerability.
	Vulnerability *VulnerabilityRecord `protobuf:"bytes,1,opt,name=vulnerability,proto3" json:"vulnerability,omitempty"`
	// Package affected by this vulnerability.
	Pkg *Package2 `protobuf:"bytes,2,opt,name=pkg,proto3" json:"pkg,omitempty"`
	// Fix related data about this vulnerability.
	Fix *Fix `protobuf:"bytes,3,opt,name=fix,proto3,oneof" json:"fix,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnerabilityMatch) Descriptor deprecated

func (*VulnerabilityMatch) Descriptor() ([]byte, []int)

Deprecated: Use VulnerabilityMatch.ProtoReflect.Descriptor instead.

func (*VulnerabilityMatch) GetFix

func (x *VulnerabilityMatch) GetFix() *Fix

func (*VulnerabilityMatch) GetPkg

func (x *VulnerabilityMatch) GetPkg() *Package2

func (*VulnerabilityMatch) GetVulnerability

func (x *VulnerabilityMatch) GetVulnerability() *VulnerabilityRecord

func (*VulnerabilityMatch) ProtoMessage

func (*VulnerabilityMatch) ProtoMessage()

func (*VulnerabilityMatch) ProtoReflect

func (x *VulnerabilityMatch) ProtoReflect() protoreflect.Message

func (*VulnerabilityMatch) Reset

func (x *VulnerabilityMatch) Reset()

func (*VulnerabilityMatch) String

func (x *VulnerabilityMatch) String() string

type VulnerabilityRecord

type VulnerabilityRecord struct {

	// id of the vulnerability e.g. CVE_1231-12.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// a short description of this vulnerability.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// severity is the value representing the severity of the vulnerability
	Severity VulnerabilityRecord_Severity `` /* 131-byte string literal not displayed */
	// source from where the vulnerability information was obtained, e.g. nvd, github, osv.
	Source string `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	// List of cvss information about the exploitability of the vulnerability.
	Cvss []*VulnerabilityRecord_Cvss `protobuf:"bytes,5,rep,name=cvss,proto3" json:"cvss,omitempty"`
	// List of cpe_uri on which the vulnerability was found.
	CpeUri []string `protobuf:"bytes,6,rep,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
	// URLs related to this vulnerability.
	RelatedUrls []string `protobuf:"bytes,7,rep,name=related_urls,json=relatedUrls,proto3" json:"related_urls,omitempty"`
	// advisories related to this vulnerability.
	Advisories map[string]string `` /* 161-byte string literal not displayed */
	// related vulnerabilities to the main vulnerability reported here.
	RelatedVulnerabilities []*VulnerabilityRecord_RelatedVulnerability `` /* 127-byte string literal not displayed */
	// display_id is the normalized value of the vulnerability ID often defined by a CVE-ID.
	DisplayId string `protobuf:"bytes,10,opt,name=display_id,json=displayId,proto3" json:"display_id,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnerabilityRecord) Descriptor deprecated

func (*VulnerabilityRecord) Descriptor() ([]byte, []int)

Deprecated: Use VulnerabilityRecord.ProtoReflect.Descriptor instead.

func (*VulnerabilityRecord) GetAdvisories

func (x *VulnerabilityRecord) GetAdvisories() map[string]string

func (*VulnerabilityRecord) GetCpeUri

func (x *VulnerabilityRecord) GetCpeUri() []string

func (*VulnerabilityRecord) GetCvss

func (*VulnerabilityRecord) GetDescription

func (x *VulnerabilityRecord) GetDescription() string

func (*VulnerabilityRecord) GetDisplayId

func (x *VulnerabilityRecord) GetDisplayId() string

func (*VulnerabilityRecord) GetId

func (x *VulnerabilityRecord) GetId() string

func (*VulnerabilityRecord) GetRelatedUrls

func (x *VulnerabilityRecord) GetRelatedUrls() []string

func (*VulnerabilityRecord) GetRelatedVulnerabilities

func (x *VulnerabilityRecord) GetRelatedVulnerabilities() []*VulnerabilityRecord_RelatedVulnerability

func (*VulnerabilityRecord) GetSeverity

func (*VulnerabilityRecord) GetSource

func (x *VulnerabilityRecord) GetSource() string

func (*VulnerabilityRecord) ProtoMessage

func (*VulnerabilityRecord) ProtoMessage()

func (*VulnerabilityRecord) ProtoReflect

func (x *VulnerabilityRecord) ProtoReflect() protoreflect.Message

func (*VulnerabilityRecord) Reset

func (x *VulnerabilityRecord) Reset()

func (*VulnerabilityRecord) String

func (x *VulnerabilityRecord) String() string

type VulnerabilityRecord_Cvss

type VulnerabilityRecord_Cvss struct {

	// CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
	Score string `protobuf:"bytes,1,opt,name=score,proto3" json:"score,omitempty"`
	// CVSS version used to populate score and severity.
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnerabilityRecord_Cvss) Descriptor deprecated

func (*VulnerabilityRecord_Cvss) Descriptor() ([]byte, []int)

Deprecated: Use VulnerabilityRecord_Cvss.ProtoReflect.Descriptor instead.

func (*VulnerabilityRecord_Cvss) GetScore

func (x *VulnerabilityRecord_Cvss) GetScore() string

func (*VulnerabilityRecord_Cvss) GetVersion

func (x *VulnerabilityRecord_Cvss) GetVersion() string

func (*VulnerabilityRecord_Cvss) ProtoMessage

func (*VulnerabilityRecord_Cvss) ProtoMessage()

func (*VulnerabilityRecord_Cvss) ProtoReflect

func (x *VulnerabilityRecord_Cvss) ProtoReflect() protoreflect.Message

func (*VulnerabilityRecord_Cvss) Reset

func (x *VulnerabilityRecord_Cvss) Reset()

func (*VulnerabilityRecord_Cvss) String

func (x *VulnerabilityRecord_Cvss) String() string

type VulnerabilityRecord_RelatedVulnerability

type VulnerabilityRecord_RelatedVulnerability struct {

	// ID of the vulnerability.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Source from where the vulnerability information was obtained, e.g. nvd, github, osv.
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*VulnerabilityRecord_RelatedVulnerability) Descriptor deprecated

func (*VulnerabilityRecord_RelatedVulnerability) Descriptor() ([]byte, []int)

Deprecated: Use VulnerabilityRecord_RelatedVulnerability.ProtoReflect.Descriptor instead.

func (*VulnerabilityRecord_RelatedVulnerability) GetId

func (*VulnerabilityRecord_RelatedVulnerability) GetSource

func (*VulnerabilityRecord_RelatedVulnerability) ProtoMessage

func (*VulnerabilityRecord_RelatedVulnerability) ProtoReflect

func (*VulnerabilityRecord_RelatedVulnerability) Reset

func (*VulnerabilityRecord_RelatedVulnerability) String

type VulnerabilityRecord_Severity

type VulnerabilityRecord_Severity int32
const (
	VulnerabilityRecord_UNKNOWN  VulnerabilityRecord_Severity = 0
	VulnerabilityRecord_LOW      VulnerabilityRecord_Severity = 1
	VulnerabilityRecord_MEDIUM   VulnerabilityRecord_Severity = 2
	VulnerabilityRecord_HIGH     VulnerabilityRecord_Severity = 3
	VulnerabilityRecord_CRITICAL VulnerabilityRecord_Severity = 4
)

func (VulnerabilityRecord_Severity) Descriptor

func (VulnerabilityRecord_Severity) Enum

func (VulnerabilityRecord_Severity) EnumDescriptor deprecated

func (VulnerabilityRecord_Severity) EnumDescriptor() ([]byte, []int)

Deprecated: Use VulnerabilityRecord_Severity.Descriptor instead.

func (VulnerabilityRecord_Severity) Number

func (VulnerabilityRecord_Severity) String

func (VulnerabilityRecord_Severity) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL