Documentation ¶
Overview ¶
Package v1 contains the v1 GRPC client and server definitions for implementing Advisory interactions.
Index ¶
- Constants
- Variables
- func RegisterSecurityAdvisoryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSecurityAdvisoryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecurityAdvisoryClient) error
- func RegisterSecurityAdvisoryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSecurityAdvisoryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecurityAdvisoryServer) error
- func RegisterSecurityAdvisoryServer(s grpc.ServiceRegistrar, srv SecurityAdvisoryServer)
- type Advisory
- func (*Advisory) Descriptor() ([]byte, []int)deprecated
- func (x *Advisory) GetAliases() []string
- func (x *Advisory) GetEvents() []*Event
- func (x *Advisory) GetId() string
- func (*Advisory) ProtoMessage()
- func (x *Advisory) ProtoReflect() protoreflect.Message
- func (x *Advisory) Reset()
- func (x *Advisory) String() string
- type AnalysisNotPlanned
- func (*AnalysisNotPlanned) Descriptor() ([]byte, []int)deprecated
- func (x *AnalysisNotPlanned) GetNote() string
- func (*AnalysisNotPlanned) ProtoMessage()
- func (x *AnalysisNotPlanned) ProtoReflect() protoreflect.Message
- func (x *AnalysisNotPlanned) Reset()
- func (x *AnalysisNotPlanned) String() string
- type Clients
- type Detection
- func (*Detection) Descriptor() ([]byte, []int)deprecated
- func (x *Detection) GetManual() *Detection_DetectionTypeManual
- func (x *Detection) GetNvdapi() *Detection_DetectionTypeNVDAPI
- func (m *Detection) GetType() isDetection_Type
- func (*Detection) ProtoMessage()
- func (x *Detection) ProtoReflect() protoreflect.Message
- func (x *Detection) Reset()
- func (x *Detection) String() string
- type Detection_DetectionTypeManual
- func (*Detection_DetectionTypeManual) Descriptor() ([]byte, []int)deprecated
- func (*Detection_DetectionTypeManual) ProtoMessage()
- func (x *Detection_DetectionTypeManual) ProtoReflect() protoreflect.Message
- func (x *Detection_DetectionTypeManual) Reset()
- func (x *Detection_DetectionTypeManual) String() string
- type Detection_DetectionTypeNVDAPI
- func (*Detection_DetectionTypeNVDAPI) Descriptor() ([]byte, []int)deprecated
- func (x *Detection_DetectionTypeNVDAPI) GetCpeFound() string
- func (x *Detection_DetectionTypeNVDAPI) GetCpeSearched() string
- func (*Detection_DetectionTypeNVDAPI) ProtoMessage()
- func (x *Detection_DetectionTypeNVDAPI) ProtoReflect() protoreflect.Message
- func (x *Detection_DetectionTypeNVDAPI) Reset()
- func (x *Detection_DetectionTypeNVDAPI) String() string
- type Detection_Manual
- type Detection_Nvdapi
- type Document
- type DocumentFilter
- func (*DocumentFilter) Descriptor() ([]byte, []int)deprecated
- func (x *DocumentFilter) GetCves() []string
- func (x *DocumentFilter) GetId() string
- func (*DocumentFilter) ProtoMessage()
- func (x *DocumentFilter) ProtoReflect() protoreflect.Message
- func (x *DocumentFilter) Reset()
- func (x *DocumentFilter) String() string
- type DocumentList
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetAnalysisNotPlanned() *AnalysisNotPlanned
- func (m *Event) GetData() isEvent_Data
- func (x *Event) GetDetection() *Detection
- func (x *Event) GetFalsePositiveDetermination() *FalsePositiveDetermination
- func (x *Event) GetFixNotPlanned() *FixNotPlanned
- func (x *Event) GetFixed() *Fixed
- func (x *Event) GetPendingUpstreamFix() *PendingUpstreamFix
- func (x *Event) GetTimestamp() *timestamppb.Timestamp
- func (x *Event) GetTruePositiveDetermination() *TruePositiveDetermination
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type Event_AnalysisNotPlanned
- type Event_Detection
- type Event_FalsePositiveDetermination
- type Event_FixNotPlanned
- type Event_Fixed
- type Event_PendingUpstreamFix
- type Event_TruePositiveDetermination
- type FalsePositiveDetermination
- func (*FalsePositiveDetermination) Descriptor() ([]byte, []int)deprecated
- func (x *FalsePositiveDetermination) GetNote() string
- func (x *FalsePositiveDetermination) GetType() FalsePositiveDetermination_Type
- func (*FalsePositiveDetermination) ProtoMessage()
- func (x *FalsePositiveDetermination) ProtoReflect() protoreflect.Message
- func (x *FalsePositiveDetermination) Reset()
- func (x *FalsePositiveDetermination) String() string
- type FalsePositiveDetermination_Type
- func (FalsePositiveDetermination_Type) Descriptor() protoreflect.EnumDescriptor
- func (x FalsePositiveDetermination_Type) Enum() *FalsePositiveDetermination_Type
- func (FalsePositiveDetermination_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x FalsePositiveDetermination_Type) Number() protoreflect.EnumNumber
- func (x FalsePositiveDetermination_Type) String() string
- func (FalsePositiveDetermination_Type) Type() protoreflect.EnumType
- type FixNotPlanned
- type Fixed
- type PendingUpstreamFix
- func (*PendingUpstreamFix) Descriptor() ([]byte, []int)deprecated
- func (x *PendingUpstreamFix) GetNote() string
- func (*PendingUpstreamFix) ProtoMessage()
- func (x *PendingUpstreamFix) ProtoReflect() protoreflect.Message
- func (x *PendingUpstreamFix) Reset()
- func (x *PendingUpstreamFix) String() string
- type Reference
- type Reference_Type
- func (Reference_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Reference_Type) Enum() *Reference_Type
- func (Reference_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Reference_Type) Number() protoreflect.EnumNumber
- func (x Reference_Type) String() string
- func (Reference_Type) Type() protoreflect.EnumType
- type SecurityAdvisoryClient
- type SecurityAdvisoryServer
- type Severity
- type Severity_Type
- func (Severity_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Severity_Type) Enum() *Severity_Type
- func (Severity_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Severity_Type) Number() protoreflect.EnumNumber
- func (x Severity_Type) String() string
- func (Severity_Type) Type() protoreflect.EnumType
- type TruePositiveDetermination
- func (*TruePositiveDetermination) Descriptor() ([]byte, []int)deprecated
- func (x *TruePositiveDetermination) GetNote() string
- func (*TruePositiveDetermination) ProtoMessage()
- func (x *TruePositiveDetermination) ProtoReflect() protoreflect.Message
- func (x *TruePositiveDetermination) Reset()
- func (x *TruePositiveDetermination) String() string
- type UnimplementedSecurityAdvisoryServer
- type UnsafeSecurityAdvisoryServer
- type VulnerabilityMetadata
- func (*VulnerabilityMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityMetadata) GetDetails() string
- func (x *VulnerabilityMetadata) GetId() string
- func (x *VulnerabilityMetadata) GetReferences() []*Reference
- func (x *VulnerabilityMetadata) GetSeverity() []*Severity
- func (x *VulnerabilityMetadata) GetSummary() string
- func (*VulnerabilityMetadata) ProtoMessage()
- func (x *VulnerabilityMetadata) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityMetadata) Reset()
- func (x *VulnerabilityMetadata) String() string
- type VulnerabilityMetadataFilter
- func (*VulnerabilityMetadataFilter) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityMetadataFilter) GetId() string
- func (*VulnerabilityMetadataFilter) ProtoMessage()
- func (x *VulnerabilityMetadataFilter) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityMetadataFilter) Reset()
- func (x *VulnerabilityMetadataFilter) String() string
- type VulnerabilityMetadataList
- func (*VulnerabilityMetadataList) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityMetadataList) GetItems() []*VulnerabilityMetadata
- func (*VulnerabilityMetadataList) ProtoMessage()
- func (x *VulnerabilityMetadataList) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityMetadataList) Reset()
- func (x *VulnerabilityMetadataList) String() string
Constants ¶
const ( SecurityAdvisory_ListDocuments_FullMethodName = "/chainguard.platform.advisory.SecurityAdvisory/ListDocuments" SecurityAdvisory_ListVulnerabilityMetadata_FullMethodName = "/chainguard.platform.advisory.SecurityAdvisory/ListVulnerabilityMetadata" )
Variables ¶
var ( Reference_Type_name = map[int32]string{ 0: "UNSPECIFIED", 1: "ADVISORY", 2: "ARTICLE", 3: "DETECTION", 4: "DISCUSSION", 5: "REPORT", 6: "FIX", 7: "INTRODUCED", 8: "PACKAGE", 9: "EVIDENCE", 10: "WEB", } Reference_Type_value = map[string]int32{ "UNSPECIFIED": 0, "ADVISORY": 1, "ARTICLE": 2, "DETECTION": 3, "DISCUSSION": 4, "REPORT": 5, "FIX": 6, "INTRODUCED": 7, "PACKAGE": 8, "EVIDENCE": 9, "WEB": 10, } )
Enum value maps for Reference_Type.
var ( Severity_Type_name = map[int32]string{ 0: "UNSPECIFIED", 1: "CVSS_V2", 2: "CVSS_V3", 3: "CVSS_V4", } Severity_Type_value = map[string]int32{ "UNSPECIFIED": 0, "CVSS_V2": 1, "CVSS_V3": 2, "CVSS_V4": 3, } )
Enum value maps for Severity_Type.
var ( FalsePositiveDetermination_Type_name = map[int32]string{ 0: "FPT_TYPE_UNSPECIFIED", 1: "FPT_TYPE_VULNERABILITY_RECORD_ANALYSIS_CONTESTED", 2: "FPT_TYPE_COMPONENT_VULNERABILITY_MISMATCH", 3: "FPT_TYPE_VULNERABLE_CODE_VERSION_NOT_USED", 4: "FPT_TYPE_VULNERABLE_CODE_NOT_INCLUDED_IN_PACKAGE", 5: "FPT_TYPE_VULNERABLE_CODE_NOT_IN_EXECUTION_PATH", 6: "FPT_TYPE_VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY", 7: "FPT_TYPE_INLINE_MITIGATIONS_EXIST", } FalsePositiveDetermination_Type_value = map[string]int32{ "FPT_TYPE_UNSPECIFIED": 0, "FPT_TYPE_VULNERABILITY_RECORD_ANALYSIS_CONTESTED": 1, "FPT_TYPE_COMPONENT_VULNERABILITY_MISMATCH": 2, "FPT_TYPE_VULNERABLE_CODE_VERSION_NOT_USED": 3, "FPT_TYPE_VULNERABLE_CODE_NOT_INCLUDED_IN_PACKAGE": 4, "FPT_TYPE_VULNERABLE_CODE_NOT_IN_EXECUTION_PATH": 5, "FPT_TYPE_VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY": 6, "FPT_TYPE_INLINE_MITIGATIONS_EXIST": 7, } )
Enum value maps for FalsePositiveDetermination_Type.
var File_advisory_platform_proto protoreflect.FileDescriptor
var SecurityAdvisory_ServiceDesc = grpc.ServiceDesc{ ServiceName: "chainguard.platform.advisory.SecurityAdvisory", HandlerType: (*SecurityAdvisoryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListDocuments", Handler: _SecurityAdvisory_ListDocuments_Handler, }, { MethodName: "ListVulnerabilityMetadata", Handler: _SecurityAdvisory_ListVulnerabilityMetadata_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "advisory.platform.proto", }
SecurityAdvisory_ServiceDesc is the grpc.ServiceDesc for SecurityAdvisory service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSecurityAdvisoryHandler ¶
func RegisterSecurityAdvisoryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSecurityAdvisoryHandler registers the http handlers for service SecurityAdvisory to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSecurityAdvisoryHandlerClient ¶
func RegisterSecurityAdvisoryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecurityAdvisoryClient) error
RegisterSecurityAdvisoryHandlerClient registers the http handlers for service SecurityAdvisory to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SecurityAdvisoryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SecurityAdvisoryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SecurityAdvisoryClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterSecurityAdvisoryHandlerFromEndpoint ¶
func RegisterSecurityAdvisoryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSecurityAdvisoryHandlerFromEndpoint is same as RegisterSecurityAdvisoryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSecurityAdvisoryHandlerServer ¶
func RegisterSecurityAdvisoryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecurityAdvisoryServer) error
RegisterSecurityAdvisoryHandlerServer registers the http handlers for service SecurityAdvisory to "mux". UnaryRPC :call SecurityAdvisoryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSecurityAdvisoryHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterSecurityAdvisoryServer ¶
func RegisterSecurityAdvisoryServer(s grpc.ServiceRegistrar, srv SecurityAdvisoryServer)
Types ¶
type Advisory ¶
type Advisory struct { // id is the identifier of this specific advisory. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Events []*Event `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` Aliases []string `protobuf:"bytes,3,rep,name=aliases,proto3" json:"aliases,omitempty"` // contains filtered or unexported fields }
func (*Advisory) Descriptor
deprecated
func (*Advisory) GetAliases ¶
func (*Advisory) ProtoMessage ¶
func (*Advisory) ProtoMessage()
func (*Advisory) ProtoReflect ¶
func (x *Advisory) ProtoReflect() protoreflect.Message
type AnalysisNotPlanned ¶
type AnalysisNotPlanned struct { Note string `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*AnalysisNotPlanned) Descriptor
deprecated
func (*AnalysisNotPlanned) Descriptor() ([]byte, []int)
Deprecated: Use AnalysisNotPlanned.ProtoReflect.Descriptor instead.
func (*AnalysisNotPlanned) GetNote ¶
func (x *AnalysisNotPlanned) GetNote() string
func (*AnalysisNotPlanned) ProtoMessage ¶
func (*AnalysisNotPlanned) ProtoMessage()
func (*AnalysisNotPlanned) ProtoReflect ¶
func (x *AnalysisNotPlanned) ProtoReflect() protoreflect.Message
func (*AnalysisNotPlanned) Reset ¶
func (x *AnalysisNotPlanned) Reset()
func (*AnalysisNotPlanned) String ¶
func (x *AnalysisNotPlanned) String() string
type Clients ¶
type Clients interface { SecurityAdvisory() SecurityAdvisoryClient Close() error }
func NewClientsFromConnection ¶
func NewClientsFromConnection(conn *grpc.ClientConn) Clients
type Detection ¶
type Detection struct { // Types that are assignable to Type: // // *Detection_Nvdapi // *Detection_Manual Type isDetection_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*Detection) Descriptor
deprecated
func (*Detection) GetManual ¶
func (x *Detection) GetManual() *Detection_DetectionTypeManual
func (*Detection) GetNvdapi ¶
func (x *Detection) GetNvdapi() *Detection_DetectionTypeNVDAPI
func (*Detection) ProtoMessage ¶
func (*Detection) ProtoMessage()
func (*Detection) ProtoReflect ¶
func (x *Detection) ProtoReflect() protoreflect.Message
type Detection_DetectionTypeManual ¶
type Detection_DetectionTypeManual struct {
// contains filtered or unexported fields
}
func (*Detection_DetectionTypeManual) Descriptor
deprecated
func (*Detection_DetectionTypeManual) Descriptor() ([]byte, []int)
Deprecated: Use Detection_DetectionTypeManual.ProtoReflect.Descriptor instead.
func (*Detection_DetectionTypeManual) ProtoMessage ¶
func (*Detection_DetectionTypeManual) ProtoMessage()
func (*Detection_DetectionTypeManual) ProtoReflect ¶
func (x *Detection_DetectionTypeManual) ProtoReflect() protoreflect.Message
func (*Detection_DetectionTypeManual) Reset ¶
func (x *Detection_DetectionTypeManual) Reset()
func (*Detection_DetectionTypeManual) String ¶
func (x *Detection_DetectionTypeManual) String() string
type Detection_DetectionTypeNVDAPI ¶
type Detection_DetectionTypeNVDAPI struct { CpeSearched string `protobuf:"bytes,1,opt,name=cpe_searched,json=cpeSearched,proto3" json:"cpe_searched,omitempty"` CpeFound string `protobuf:"bytes,2,opt,name=cpe_found,json=cpeFound,proto3" json:"cpe_found,omitempty"` // contains filtered or unexported fields }
func (*Detection_DetectionTypeNVDAPI) Descriptor
deprecated
func (*Detection_DetectionTypeNVDAPI) Descriptor() ([]byte, []int)
Deprecated: Use Detection_DetectionTypeNVDAPI.ProtoReflect.Descriptor instead.
func (*Detection_DetectionTypeNVDAPI) GetCpeFound ¶
func (x *Detection_DetectionTypeNVDAPI) GetCpeFound() string
func (*Detection_DetectionTypeNVDAPI) GetCpeSearched ¶
func (x *Detection_DetectionTypeNVDAPI) GetCpeSearched() string
func (*Detection_DetectionTypeNVDAPI) ProtoMessage ¶
func (*Detection_DetectionTypeNVDAPI) ProtoMessage()
func (*Detection_DetectionTypeNVDAPI) ProtoReflect ¶
func (x *Detection_DetectionTypeNVDAPI) ProtoReflect() protoreflect.Message
func (*Detection_DetectionTypeNVDAPI) Reset ¶
func (x *Detection_DetectionTypeNVDAPI) Reset()
func (*Detection_DetectionTypeNVDAPI) String ¶
func (x *Detection_DetectionTypeNVDAPI) String() string
type Detection_Manual ¶
type Detection_Manual struct {
Manual *Detection_DetectionTypeManual `protobuf:"bytes,2,opt,name=manual,proto3,oneof"`
}
type Detection_Nvdapi ¶
type Detection_Nvdapi struct {
Nvdapi *Detection_DetectionTypeNVDAPI `protobuf:"bytes,1,opt,name=nvdapi,proto3,oneof"`
}
type Document ¶
type Document struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Advisories []*Advisory `protobuf:"bytes,2,rep,name=advisories,proto3" json:"advisories,omitempty"` // contains filtered or unexported fields }
func (*Document) Descriptor
deprecated
func (*Document) GetAdvisories ¶
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) ProtoReflect ¶
func (x *Document) ProtoReflect() protoreflect.Message
type DocumentFilter ¶
type DocumentFilter struct { // id is the id of a package. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Cves []string `protobuf:"bytes,2,rep,name=cves,proto3" json:"cves,omitempty"` // contains filtered or unexported fields }
func (*DocumentFilter) Descriptor
deprecated
func (*DocumentFilter) Descriptor() ([]byte, []int)
Deprecated: Use DocumentFilter.ProtoReflect.Descriptor instead.
func (*DocumentFilter) GetCves ¶
func (x *DocumentFilter) GetCves() []string
func (*DocumentFilter) GetId ¶
func (x *DocumentFilter) GetId() string
func (*DocumentFilter) ProtoMessage ¶
func (*DocumentFilter) ProtoMessage()
func (*DocumentFilter) ProtoReflect ¶
func (x *DocumentFilter) ProtoReflect() protoreflect.Message
func (*DocumentFilter) Reset ¶
func (x *DocumentFilter) Reset()
func (*DocumentFilter) String ¶
func (x *DocumentFilter) String() string
type DocumentList ¶
type DocumentList struct { Items []*Document `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*DocumentList) Descriptor
deprecated
func (*DocumentList) Descriptor() ([]byte, []int)
Deprecated: Use DocumentList.ProtoReflect.Descriptor instead.
func (*DocumentList) GetItems ¶
func (x *DocumentList) GetItems() []*Document
func (*DocumentList) ProtoMessage ¶
func (*DocumentList) ProtoMessage()
func (*DocumentList) ProtoReflect ¶
func (x *DocumentList) ProtoReflect() protoreflect.Message
func (*DocumentList) Reset ¶
func (x *DocumentList) Reset()
func (*DocumentList) String ¶
func (x *DocumentList) String() string
type Event ¶
type Event struct { Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Types that are assignable to Data: // // *Event_TruePositiveDetermination // *Event_FalsePositiveDetermination // *Event_Fixed // *Event_Detection // *Event_AnalysisNotPlanned // *Event_FixNotPlanned // *Event_PendingUpstreamFix Data isEvent_Data `protobuf_oneof:"data"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetAnalysisNotPlanned ¶
func (x *Event) GetAnalysisNotPlanned() *AnalysisNotPlanned
func (*Event) GetDetection ¶
func (*Event) GetFalsePositiveDetermination ¶
func (x *Event) GetFalsePositiveDetermination() *FalsePositiveDetermination
func (*Event) GetFixNotPlanned ¶
func (x *Event) GetFixNotPlanned() *FixNotPlanned
func (*Event) GetPendingUpstreamFix ¶
func (x *Event) GetPendingUpstreamFix() *PendingUpstreamFix
func (*Event) GetTimestamp ¶
func (x *Event) GetTimestamp() *timestamppb.Timestamp
func (*Event) GetTruePositiveDetermination ¶
func (x *Event) GetTruePositiveDetermination() *TruePositiveDetermination
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type Event_AnalysisNotPlanned ¶
type Event_AnalysisNotPlanned struct {
AnalysisNotPlanned *AnalysisNotPlanned `protobuf:"bytes,14,opt,name=analysis_not_planned,json=analysisNotPlanned,proto3,oneof"`
}
type Event_Detection ¶
type Event_Detection struct {
Detection *Detection `protobuf:"bytes,13,opt,name=detection,proto3,oneof"`
}
type Event_FalsePositiveDetermination ¶
type Event_FalsePositiveDetermination struct {
FalsePositiveDetermination *FalsePositiveDetermination `protobuf:"bytes,11,opt,name=false_positive_determination,json=falsePositiveDetermination,proto3,oneof"`
}
type Event_FixNotPlanned ¶
type Event_FixNotPlanned struct {
FixNotPlanned *FixNotPlanned `protobuf:"bytes,15,opt,name=fix_not_planned,json=fixNotPlanned,proto3,oneof"`
}
type Event_Fixed ¶
type Event_Fixed struct {
Fixed *Fixed `protobuf:"bytes,12,opt,name=fixed,proto3,oneof"`
}
type Event_PendingUpstreamFix ¶
type Event_PendingUpstreamFix struct {
PendingUpstreamFix *PendingUpstreamFix `protobuf:"bytes,16,opt,name=pending_upstream_fix,json=pendingUpstreamFix,proto3,oneof"`
}
type Event_TruePositiveDetermination ¶
type Event_TruePositiveDetermination struct {
TruePositiveDetermination *TruePositiveDetermination `protobuf:"bytes,10,opt,name=true_positive_determination,json=truePositiveDetermination,proto3,oneof"`
}
type FalsePositiveDetermination ¶
type FalsePositiveDetermination struct { Type FalsePositiveDetermination_Type `` /* 128-byte string literal not displayed */ Note string `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*FalsePositiveDetermination) Descriptor
deprecated
func (*FalsePositiveDetermination) Descriptor() ([]byte, []int)
Deprecated: Use FalsePositiveDetermination.ProtoReflect.Descriptor instead.
func (*FalsePositiveDetermination) GetNote ¶
func (x *FalsePositiveDetermination) GetNote() string
func (*FalsePositiveDetermination) GetType ¶
func (x *FalsePositiveDetermination) GetType() FalsePositiveDetermination_Type
func (*FalsePositiveDetermination) ProtoMessage ¶
func (*FalsePositiveDetermination) ProtoMessage()
func (*FalsePositiveDetermination) ProtoReflect ¶
func (x *FalsePositiveDetermination) ProtoReflect() protoreflect.Message
func (*FalsePositiveDetermination) Reset ¶
func (x *FalsePositiveDetermination) Reset()
func (*FalsePositiveDetermination) String ¶
func (x *FalsePositiveDetermination) String() string
type FalsePositiveDetermination_Type ¶
type FalsePositiveDetermination_Type int32
const ( // The "unset" value. FalsePositiveDetermination_FPT_TYPE_UNSPECIFIED FalsePositiveDetermination_Type = 0 // VEX: vulnerable_code_not_present. FalsePositiveDetermination_FPT_TYPE_VULNERABILITY_RECORD_ANALYSIS_CONTESTED FalsePositiveDetermination_Type = 1 // VEX: component_not_present. FalsePositiveDetermination_FPT_TYPE_COMPONENT_VULNERABILITY_MISMATCH FalsePositiveDetermination_Type = 2 // VEX: vulnerable_code_not_present. FalsePositiveDetermination_FPT_TYPE_VULNERABLE_CODE_VERSION_NOT_USED FalsePositiveDetermination_Type = 3 // VEX: vulnerable_code_not_present. FalsePositiveDetermination_FPT_TYPE_VULNERABLE_CODE_NOT_INCLUDED_IN_PACKAGE FalsePositiveDetermination_Type = 4 // VEX: vulnerable_code_not_in_execute_path. FalsePositiveDetermination_FPT_TYPE_VULNERABLE_CODE_NOT_IN_EXECUTION_PATH FalsePositiveDetermination_Type = 5 // VEX: vulnerable_code_cannot_be_controlled_by_adversary. FalsePositiveDetermination_FPT_TYPE_VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY FalsePositiveDetermination_Type = 6 // VEX: inline_mitigations_already_exist. FalsePositiveDetermination_FPT_TYPE_INLINE_MITIGATIONS_EXIST FalsePositiveDetermination_Type = 7 )
func (FalsePositiveDetermination_Type) Descriptor ¶
func (FalsePositiveDetermination_Type) Descriptor() protoreflect.EnumDescriptor
func (FalsePositiveDetermination_Type) Enum ¶
func (x FalsePositiveDetermination_Type) Enum() *FalsePositiveDetermination_Type
func (FalsePositiveDetermination_Type) EnumDescriptor
deprecated
func (FalsePositiveDetermination_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use FalsePositiveDetermination_Type.Descriptor instead.
func (FalsePositiveDetermination_Type) Number ¶
func (x FalsePositiveDetermination_Type) Number() protoreflect.EnumNumber
func (FalsePositiveDetermination_Type) String ¶
func (x FalsePositiveDetermination_Type) String() string
func (FalsePositiveDetermination_Type) Type ¶
func (FalsePositiveDetermination_Type) Type() protoreflect.EnumType
type FixNotPlanned ¶
type FixNotPlanned struct { Note string `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*FixNotPlanned) Descriptor
deprecated
func (*FixNotPlanned) Descriptor() ([]byte, []int)
Deprecated: Use FixNotPlanned.ProtoReflect.Descriptor instead.
func (*FixNotPlanned) GetNote ¶
func (x *FixNotPlanned) GetNote() string
func (*FixNotPlanned) ProtoMessage ¶
func (*FixNotPlanned) ProtoMessage()
func (*FixNotPlanned) ProtoReflect ¶
func (x *FixNotPlanned) ProtoReflect() protoreflect.Message
func (*FixNotPlanned) Reset ¶
func (x *FixNotPlanned) Reset()
func (*FixNotPlanned) String ¶
func (x *FixNotPlanned) String() string
type Fixed ¶
type Fixed struct { FixedVersion string `protobuf:"bytes,1,opt,name=fixed_version,json=fixedVersion,proto3" json:"fixed_version,omitempty"` // contains filtered or unexported fields }
func (*Fixed) Descriptor
deprecated
func (*Fixed) GetFixedVersion ¶
func (*Fixed) ProtoMessage ¶
func (*Fixed) ProtoMessage()
func (*Fixed) ProtoReflect ¶
func (x *Fixed) ProtoReflect() protoreflect.Message
type PendingUpstreamFix ¶
type PendingUpstreamFix struct { Note string `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*PendingUpstreamFix) Descriptor
deprecated
func (*PendingUpstreamFix) Descriptor() ([]byte, []int)
Deprecated: Use PendingUpstreamFix.ProtoReflect.Descriptor instead.
func (*PendingUpstreamFix) GetNote ¶
func (x *PendingUpstreamFix) GetNote() string
func (*PendingUpstreamFix) ProtoMessage ¶
func (*PendingUpstreamFix) ProtoMessage()
func (*PendingUpstreamFix) ProtoReflect ¶
func (x *PendingUpstreamFix) ProtoReflect() protoreflect.Message
func (*PendingUpstreamFix) Reset ¶
func (x *PendingUpstreamFix) Reset()
func (*PendingUpstreamFix) String ¶
func (x *PendingUpstreamFix) String() string
type Reference ¶ added in v0.1.15
type Reference struct { Type Reference_Type `protobuf:"varint,1,opt,name=type,proto3,enum=chainguard.platform.advisory.Reference_Type" json:"type,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Reference) Descriptor
deprecated
added in
v0.1.15
func (*Reference) GetType ¶ added in v0.1.15
func (x *Reference) GetType() Reference_Type
func (*Reference) ProtoMessage ¶ added in v0.1.15
func (*Reference) ProtoMessage()
func (*Reference) ProtoReflect ¶ added in v0.1.15
func (x *Reference) ProtoReflect() protoreflect.Message
type Reference_Type ¶ added in v0.1.18
type Reference_Type int32
const ( // The "unset" value. Reference_UNSPECIFIED Reference_Type = 0 // Published security advisory for the vulnerability. Reference_ADVISORY Reference_Type = 1 // Article or blog post describing the vulnerability. Reference_ARTICLE Reference_Type = 2 // Scanner or tool that allows detection in prod environments. Reference_DETECTION Reference_Type = 3 // Social media discussion about vuln. Reference_DISCUSSION Reference_Type = 4 // Report on vuln. Reference_REPORT Reference_Type = 5 // Source code browser link to fix. Reference_FIX Reference_Type = 6 // Source code browser link to introduction of vuln. Reference_INTRODUCED Reference_Type = 7 // Home web page for package. Reference_PACKAGE Reference_Type = 8 // Demonstration of validity of vuln claim. Reference_EVIDENCE Reference_Type = 9 // Web page of unspecified kind. Reference_WEB Reference_Type = 10 )
func (Reference_Type) Descriptor ¶ added in v0.1.18
func (Reference_Type) Descriptor() protoreflect.EnumDescriptor
func (Reference_Type) Enum ¶ added in v0.1.18
func (x Reference_Type) Enum() *Reference_Type
func (Reference_Type) EnumDescriptor
deprecated
added in
v0.1.18
func (Reference_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Reference_Type.Descriptor instead.
func (Reference_Type) Number ¶ added in v0.1.18
func (x Reference_Type) Number() protoreflect.EnumNumber
func (Reference_Type) String ¶ added in v0.1.18
func (x Reference_Type) String() string
func (Reference_Type) Type ¶ added in v0.1.18
func (Reference_Type) Type() protoreflect.EnumType
type SecurityAdvisoryClient ¶
type SecurityAdvisoryClient interface { ListDocuments(ctx context.Context, in *DocumentFilter, opts ...grpc.CallOption) (*DocumentList, error) ListVulnerabilityMetadata(ctx context.Context, in *VulnerabilityMetadataFilter, opts ...grpc.CallOption) (*VulnerabilityMetadataList, error) }
SecurityAdvisoryClient is the client API for SecurityAdvisory service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSecurityAdvisoryClient ¶
func NewSecurityAdvisoryClient(cc grpc.ClientConnInterface) SecurityAdvisoryClient
type SecurityAdvisoryServer ¶
type SecurityAdvisoryServer interface { ListDocuments(context.Context, *DocumentFilter) (*DocumentList, error) ListVulnerabilityMetadata(context.Context, *VulnerabilityMetadataFilter) (*VulnerabilityMetadataList, error) // contains filtered or unexported methods }
SecurityAdvisoryServer is the server API for SecurityAdvisory service. All implementations must embed UnimplementedSecurityAdvisoryServer for forward compatibility.
type Severity ¶ added in v0.1.15
type Severity struct { // CVSS version standard. Type Severity_Type `protobuf:"varint,1,opt,name=type,proto3,enum=chainguard.platform.advisory.Severity_Type" json:"type,omitempty"` // Vector string representing CVSS score based on type. Score string `protobuf:"bytes,2,opt,name=score,proto3" json:"score,omitempty"` // contains filtered or unexported fields }
func (*Severity) Descriptor
deprecated
added in
v0.1.15
func (*Severity) GetType ¶ added in v0.1.15
func (x *Severity) GetType() Severity_Type
func (*Severity) ProtoMessage ¶ added in v0.1.15
func (*Severity) ProtoMessage()
func (*Severity) ProtoReflect ¶ added in v0.1.15
func (x *Severity) ProtoReflect() protoreflect.Message
type Severity_Type ¶ added in v0.1.18
type Severity_Type int32
const ( // The "unset" value. Severity_UNSPECIFIED Severity_Type = 0 // CVSS v2 Severity_CVSS_V2 Severity_Type = 1 // CVSS >= 3.0 and < 4.0 Severity_CVSS_V3 Severity_Type = 2 // CVSS >= 4.0 and < 5.0 Severity_CVSS_V4 Severity_Type = 3 )
func (Severity_Type) Descriptor ¶ added in v0.1.18
func (Severity_Type) Descriptor() protoreflect.EnumDescriptor
func (Severity_Type) Enum ¶ added in v0.1.18
func (x Severity_Type) Enum() *Severity_Type
func (Severity_Type) EnumDescriptor
deprecated
added in
v0.1.18
func (Severity_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Severity_Type.Descriptor instead.
func (Severity_Type) Number ¶ added in v0.1.18
func (x Severity_Type) Number() protoreflect.EnumNumber
func (Severity_Type) String ¶ added in v0.1.18
func (x Severity_Type) String() string
func (Severity_Type) Type ¶ added in v0.1.18
func (Severity_Type) Type() protoreflect.EnumType
type TruePositiveDetermination ¶
type TruePositiveDetermination struct { Note string `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*TruePositiveDetermination) Descriptor
deprecated
func (*TruePositiveDetermination) Descriptor() ([]byte, []int)
Deprecated: Use TruePositiveDetermination.ProtoReflect.Descriptor instead.
func (*TruePositiveDetermination) GetNote ¶
func (x *TruePositiveDetermination) GetNote() string
func (*TruePositiveDetermination) ProtoMessage ¶
func (*TruePositiveDetermination) ProtoMessage()
func (*TruePositiveDetermination) ProtoReflect ¶
func (x *TruePositiveDetermination) ProtoReflect() protoreflect.Message
func (*TruePositiveDetermination) Reset ¶
func (x *TruePositiveDetermination) Reset()
func (*TruePositiveDetermination) String ¶
func (x *TruePositiveDetermination) String() string
type UnimplementedSecurityAdvisoryServer ¶
type UnimplementedSecurityAdvisoryServer struct{}
UnimplementedSecurityAdvisoryServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSecurityAdvisoryServer) ListDocuments ¶
func (UnimplementedSecurityAdvisoryServer) ListDocuments(context.Context, *DocumentFilter) (*DocumentList, error)
func (UnimplementedSecurityAdvisoryServer) ListVulnerabilityMetadata ¶ added in v0.1.15
func (UnimplementedSecurityAdvisoryServer) ListVulnerabilityMetadata(context.Context, *VulnerabilityMetadataFilter) (*VulnerabilityMetadataList, error)
type UnsafeSecurityAdvisoryServer ¶
type UnsafeSecurityAdvisoryServer interface {
// contains filtered or unexported methods
}
UnsafeSecurityAdvisoryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecurityAdvisoryServer will result in compilation errors.
type VulnerabilityMetadata ¶ added in v0.1.15
type VulnerabilityMetadata struct { // id is the identifier of this specific vuln. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"` Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"` References []*Reference `protobuf:"bytes,4,rep,name=references,proto3" json:"references,omitempty"` Severity []*Severity `protobuf:"bytes,5,rep,name=severity,proto3" json:"severity,omitempty"` // contains filtered or unexported fields }
func (*VulnerabilityMetadata) Descriptor
deprecated
added in
v0.1.15
func (*VulnerabilityMetadata) Descriptor() ([]byte, []int)
Deprecated: Use VulnerabilityMetadata.ProtoReflect.Descriptor instead.
func (*VulnerabilityMetadata) GetDetails ¶ added in v0.1.15
func (x *VulnerabilityMetadata) GetDetails() string
func (*VulnerabilityMetadata) GetId ¶ added in v0.1.15
func (x *VulnerabilityMetadata) GetId() string
func (*VulnerabilityMetadata) GetReferences ¶ added in v0.1.15
func (x *VulnerabilityMetadata) GetReferences() []*Reference
func (*VulnerabilityMetadata) GetSeverity ¶ added in v0.1.15
func (x *VulnerabilityMetadata) GetSeverity() []*Severity
func (*VulnerabilityMetadata) GetSummary ¶ added in v0.1.15
func (x *VulnerabilityMetadata) GetSummary() string
func (*VulnerabilityMetadata) ProtoMessage ¶ added in v0.1.15
func (*VulnerabilityMetadata) ProtoMessage()
func (*VulnerabilityMetadata) ProtoReflect ¶ added in v0.1.15
func (x *VulnerabilityMetadata) ProtoReflect() protoreflect.Message
func (*VulnerabilityMetadata) Reset ¶ added in v0.1.15
func (x *VulnerabilityMetadata) Reset()
func (*VulnerabilityMetadata) String ¶ added in v0.1.15
func (x *VulnerabilityMetadata) String() string
type VulnerabilityMetadataFilter ¶ added in v0.1.15
type VulnerabilityMetadataFilter struct { // id is the id of a vuln. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*VulnerabilityMetadataFilter) Descriptor
deprecated
added in
v0.1.15
func (*VulnerabilityMetadataFilter) Descriptor() ([]byte, []int)
Deprecated: Use VulnerabilityMetadataFilter.ProtoReflect.Descriptor instead.
func (*VulnerabilityMetadataFilter) GetId ¶ added in v0.1.15
func (x *VulnerabilityMetadataFilter) GetId() string
func (*VulnerabilityMetadataFilter) ProtoMessage ¶ added in v0.1.15
func (*VulnerabilityMetadataFilter) ProtoMessage()
func (*VulnerabilityMetadataFilter) ProtoReflect ¶ added in v0.1.15
func (x *VulnerabilityMetadataFilter) ProtoReflect() protoreflect.Message
func (*VulnerabilityMetadataFilter) Reset ¶ added in v0.1.15
func (x *VulnerabilityMetadataFilter) Reset()
func (*VulnerabilityMetadataFilter) String ¶ added in v0.1.15
func (x *VulnerabilityMetadataFilter) String() string
type VulnerabilityMetadataList ¶ added in v0.1.15
type VulnerabilityMetadataList struct { Items []*VulnerabilityMetadata `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*VulnerabilityMetadataList) Descriptor
deprecated
added in
v0.1.15
func (*VulnerabilityMetadataList) Descriptor() ([]byte, []int)
Deprecated: Use VulnerabilityMetadataList.ProtoReflect.Descriptor instead.
func (*VulnerabilityMetadataList) GetItems ¶ added in v0.1.15
func (x *VulnerabilityMetadataList) GetItems() []*VulnerabilityMetadata
func (*VulnerabilityMetadataList) ProtoMessage ¶ added in v0.1.15
func (*VulnerabilityMetadataList) ProtoMessage()
func (*VulnerabilityMetadataList) ProtoReflect ¶ added in v0.1.15
func (x *VulnerabilityMetadataList) ProtoReflect() protoreflect.Message
func (*VulnerabilityMetadataList) Reset ¶ added in v0.1.15
func (x *VulnerabilityMetadataList) Reset()
func (*VulnerabilityMetadataList) String ¶ added in v0.1.15
func (x *VulnerabilityMetadataList) String() string