Documentation ¶
Overview ¶
Package v1 contains the v1 GRPC client and server definitions for implementing Tenant interactions for the Console.
Index ¶
- Constants
- Variables
- func RegisterAttestationsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAttestationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AttestationsClient) error
- func RegisterAttestationsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAttestationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AttestationsServer) error
- func RegisterAttestationsServer(s grpc.ServiceRegistrar, srv AttestationsServer)
- func RegisterSbomsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSbomsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SbomsClient) error
- func RegisterSbomsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSbomsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SbomsServer) error
- func RegisterSbomsServer(s grpc.ServiceRegistrar, srv SbomsServer)
- func RegisterSignaturesServer(s grpc.ServiceRegistrar, srv SignaturesServer)
- func RegisterVulnReportsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterVulnReportsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VulnReportsClient) error
- func RegisterVulnReportsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterVulnReportsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VulnReportsServer) error
- func RegisterVulnReportsServer(s grpc.ServiceRegistrar, srv VulnReportsServer)
- type Attestation
- func (*Attestation) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation) GetDescription() string
- func (x *Attestation) GetDigest() string
- func (x *Attestation) GetFormat() string
- func (x *Attestation) GetGeneratedAt() *timestamppb.Timestamp
- func (x *Attestation) GetId() string
- func (x *Attestation) GetName() string
- func (x *Attestation) GetRawAttestation() []byte
- func (*Attestation) ProtoMessage()
- func (x *Attestation) ProtoReflect() protoreflect.Message
- func (x *Attestation) Reset()
- func (x *Attestation) String() string
- type AttestationFilter
- func (*AttestationFilter) Descriptor() ([]byte, []int)deprecated
- func (x *AttestationFilter) GetId() string
- func (x *AttestationFilter) GetUidp() *v1.UIDPFilter
- func (*AttestationFilter) ProtoMessage()
- func (x *AttestationFilter) ProtoReflect() protoreflect.Message
- func (x *AttestationFilter) Reset()
- func (x *AttestationFilter) String() string
- type AttestationList
- type AttestationsClient
- type AttestationsServer
- type Clients
- type ComponentGraph
- func (*ComponentGraph) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentGraph) GetEdges() []*ComponentGraph_Edge
- func (x *ComponentGraph) GetNodes() []*ComponentGraph_Node
- func (*ComponentGraph) ProtoMessage()
- func (x *ComponentGraph) ProtoReflect() protoreflect.Message
- func (x *ComponentGraph) Reset()
- func (x *ComponentGraph) String() string
- type ComponentGraph_Edge
- func (*ComponentGraph_Edge) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentGraph_Edge) GetPredicateId() string
- func (x *ComponentGraph_Edge) GetSubjectId() string
- func (x *ComponentGraph_Edge) GetType() ComponentGraph_Edge_Type
- func (*ComponentGraph_Edge) ProtoMessage()
- func (x *ComponentGraph_Edge) ProtoReflect() protoreflect.Message
- func (x *ComponentGraph_Edge) Reset()
- func (x *ComponentGraph_Edge) String() string
- type ComponentGraph_Edge_Type
- func (ComponentGraph_Edge_Type) Descriptor() protoreflect.EnumDescriptor
- func (x ComponentGraph_Edge_Type) Enum() *ComponentGraph_Edge_Type
- func (ComponentGraph_Edge_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x ComponentGraph_Edge_Type) Number() protoreflect.EnumNumber
- func (x ComponentGraph_Edge_Type) String() string
- func (ComponentGraph_Edge_Type) Type() protoreflect.EnumType
- type ComponentGraph_Node
- func (*ComponentGraph_Node) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentGraph_Node) GetFile() *File2
- func (x *ComponentGraph_Node) GetPackage() *Package2
- func (m *ComponentGraph_Node) GetTypedNode() isComponentGraph_Node_TypedNode
- func (*ComponentGraph_Node) ProtoMessage()
- func (x *ComponentGraph_Node) ProtoReflect() protoreflect.Message
- func (x *ComponentGraph_Node) Reset()
- func (x *ComponentGraph_Node) String() string
- type ComponentGraph_Node_File
- type ComponentGraph_Node_Package
- type File2
- type Fix
- type Fix_State
- type Package2
- func (*Package2) Descriptor() ([]byte, []int)deprecated
- func (x *Package2) GetDescription() string
- func (x *Package2) GetId() string
- func (x *Package2) GetLicense() string
- func (x *Package2) GetName() string
- func (x *Package2) GetPurl() string
- func (x *Package2) GetVersion() string
- func (*Package2) ProtoMessage()
- func (x *Package2) ProtoReflect() protoreflect.Message
- func (x *Package2) Reset()
- func (x *Package2) String() string
- type Sbom2
- func (*Sbom2) Descriptor() ([]byte, []int)deprecated
- func (x *Sbom2) GetAuthors() string
- func (x *Sbom2) GetDescription() string
- func (x *Sbom2) GetDigest() string
- func (x *Sbom2) GetFormat() string
- func (x *Sbom2) GetGeneratedAt() *timestamppb.Timestamp
- func (x *Sbom2) GetGraph() *ComponentGraph
- func (x *Sbom2) GetId() string
- func (x *Sbom2) GetLastSeen() *timestamppb.Timestamp
- func (x *Sbom2) GetName() string
- func (x *Sbom2) GetRawSbom() []byte
- func (x *Sbom2) GetSource() Sbom2_Source
- func (x *Sbom2) GetTool() string
- func (*Sbom2) ProtoMessage()
- func (x *Sbom2) ProtoReflect() protoreflect.Message
- func (x *Sbom2) Reset()
- func (x *Sbom2) String() string
- type Sbom2Filter
- func (*Sbom2Filter) Descriptor() ([]byte, []int)deprecated
- func (x *Sbom2Filter) GetActiveSince() *timestamppb.Timestamp
- func (x *Sbom2Filter) GetId() string
- func (x *Sbom2Filter) GetIncludeRawSbom() bool
- func (x *Sbom2Filter) GetUidp() *v1.UIDPFilter
- func (*Sbom2Filter) ProtoMessage()
- func (x *Sbom2Filter) ProtoReflect() protoreflect.Message
- func (x *Sbom2Filter) Reset()
- func (x *Sbom2Filter) String() string
- type Sbom2List
- type Sbom2_Source
- func (Sbom2_Source) Descriptor() protoreflect.EnumDescriptor
- func (x Sbom2_Source) Enum() *Sbom2_Source
- func (Sbom2_Source) EnumDescriptor() ([]byte, []int)deprecated
- func (x Sbom2_Source) Number() protoreflect.EnumNumber
- func (x Sbom2_Source) String() string
- func (Sbom2_Source) Type() protoreflect.EnumType
- type SbomsClient
- type SbomsServer
- type Scanner
- type Signature
- func (*Signature) Descriptor() ([]byte, []int)deprecated
- func (x *Signature) GetDescription() string
- func (x *Signature) GetId() string
- func (x *Signature) GetKey() *Signature_Key
- func (x *Signature) GetKeyless() *Signature_Keyless
- func (m *Signature) GetKind() isSignature_Kind
- func (x *Signature) GetLastSeen() *timestamppb.Timestamp
- func (x *Signature) GetName() string
- func (x *Signature) GetNone() *emptypb.Empty
- func (x *Signature) GetPredicateType() string
- func (*Signature) ProtoMessage()
- func (x *Signature) ProtoReflect() protoreflect.Message
- func (x *Signature) Reset()
- func (x *Signature) String() string
- type SignatureFilter
- func (*SignatureFilter) Descriptor() ([]byte, []int)deprecated
- func (x *SignatureFilter) GetActiveSince() *timestamppb.Timestamp
- func (x *SignatureFilter) GetName() string
- func (x *SignatureFilter) GetPredicateType() string
- func (x *SignatureFilter) GetUidp() *v1.UIDPFilter
- func (*SignatureFilter) ProtoMessage()
- func (x *SignatureFilter) ProtoReflect() protoreflect.Message
- func (x *SignatureFilter) Reset()
- func (x *SignatureFilter) String() string
- type SignatureList
- type Signature_Key
- type Signature_Key_
- type Signature_Keyless
- func (*Signature_Keyless) Descriptor() ([]byte, []int)deprecated
- func (x *Signature_Keyless) GetGithub() *Signature_Keyless_Github
- func (x *Signature_Keyless) GetIssuer() string
- func (x *Signature_Keyless) GetSubject() string
- func (*Signature_Keyless) ProtoMessage()
- func (x *Signature_Keyless) ProtoReflect() protoreflect.Message
- func (x *Signature_Keyless) Reset()
- func (x *Signature_Keyless) String() string
- type Signature_Keyless_
- type Signature_Keyless_Github
- func (*Signature_Keyless_Github) Descriptor() ([]byte, []int)deprecated
- func (x *Signature_Keyless_Github) GetWorkflowName() string
- func (x *Signature_Keyless_Github) GetWorkflowRef() string
- func (x *Signature_Keyless_Github) GetWorkflowRepo() string
- func (x *Signature_Keyless_Github) GetWorkflowSha() string
- func (x *Signature_Keyless_Github) GetWorkflowTrigger() string
- func (*Signature_Keyless_Github) ProtoMessage()
- func (x *Signature_Keyless_Github) ProtoReflect() protoreflect.Message
- func (x *Signature_Keyless_Github) Reset()
- func (x *Signature_Keyless_Github) String() string
- type Signature_None
- type SignaturesClient
- type SignaturesServer
- type UnimplementedAttestationsServer
- type UnimplementedSbomsServer
- type UnimplementedSignaturesServer
- type UnimplementedVulnReportsServer
- type UnsafeAttestationsServer
- type UnsafeSbomsServer
- type UnsafeSignaturesServer
- type UnsafeVulnReportsServer
- type VulnReport
- func (*VulnReport) Descriptor() ([]byte, []int)deprecated
- func (x *VulnReport) GetId() string
- func (x *VulnReport) GetLastSeen() *timestamppb.Timestamp
- func (x *VulnReport) GetRawVulnReport() []byte
- func (x *VulnReport) GetReportGeneration() *timestamppb.Timestamp
- func (x *VulnReport) GetScanner() *Scanner
- func (x *VulnReport) GetVulnerabilityDbLastBuildTime() *timestamppb.Timestamp
- func (x *VulnReport) GetVulnerabilityMatches() []*VulnerabilityMatch
- func (*VulnReport) ProtoMessage()
- func (x *VulnReport) ProtoReflect() protoreflect.Message
- func (x *VulnReport) Reset()
- func (x *VulnReport) String() string
- type VulnReportFilter
- func (*VulnReportFilter) Descriptor() ([]byte, []int)deprecated
- func (x *VulnReportFilter) GetActiveSince() *timestamppb.Timestamp
- func (x *VulnReportFilter) GetId() string
- func (x *VulnReportFilter) GetIncludeRawVulnReport() bool
- func (x *VulnReportFilter) GetUidp() *v1.UIDPFilter
- func (*VulnReportFilter) ProtoMessage()
- func (x *VulnReportFilter) ProtoReflect() protoreflect.Message
- func (x *VulnReportFilter) Reset()
- func (x *VulnReportFilter) String() string
- type VulnReportList
- type VulnReportsClient
- type VulnReportsServer
- type VulnerabilityMatch
- func (*VulnerabilityMatch) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityMatch) GetFix() *Fix
- func (x *VulnerabilityMatch) GetPkg() *Package2
- func (x *VulnerabilityMatch) GetVulnerability() *VulnerabilityRecord
- func (*VulnerabilityMatch) ProtoMessage()
- func (x *VulnerabilityMatch) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityMatch) Reset()
- func (x *VulnerabilityMatch) String() string
- type VulnerabilityRecord
- func (*VulnerabilityRecord) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityRecord) GetAdvisories() map[string]string
- func (x *VulnerabilityRecord) GetCpeUri() []string
- func (x *VulnerabilityRecord) GetCvss() []*VulnerabilityRecord_Cvss
- func (x *VulnerabilityRecord) GetDescription() string
- func (x *VulnerabilityRecord) GetDisplayId() string
- func (x *VulnerabilityRecord) GetId() string
- func (x *VulnerabilityRecord) GetRelatedUrls() []string
- func (x *VulnerabilityRecord) GetRelatedVulnerabilities() []*VulnerabilityRecord_RelatedVulnerability
- func (x *VulnerabilityRecord) GetSeverity() VulnerabilityRecord_Severity
- func (x *VulnerabilityRecord) GetSource() string
- func (*VulnerabilityRecord) ProtoMessage()
- func (x *VulnerabilityRecord) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityRecord) Reset()
- func (x *VulnerabilityRecord) String() string
- type VulnerabilityRecord_Cvss
- func (*VulnerabilityRecord_Cvss) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityRecord_Cvss) GetScore() string
- func (x *VulnerabilityRecord_Cvss) GetVersion() string
- func (*VulnerabilityRecord_Cvss) ProtoMessage()
- func (x *VulnerabilityRecord_Cvss) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityRecord_Cvss) Reset()
- func (x *VulnerabilityRecord_Cvss) String() string
- type VulnerabilityRecord_RelatedVulnerability
- func (*VulnerabilityRecord_RelatedVulnerability) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityRecord_RelatedVulnerability) GetId() string
- func (x *VulnerabilityRecord_RelatedVulnerability) GetSource() string
- func (*VulnerabilityRecord_RelatedVulnerability) ProtoMessage()
- func (x *VulnerabilityRecord_RelatedVulnerability) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityRecord_RelatedVulnerability) Reset()
- func (x *VulnerabilityRecord_RelatedVulnerability) String() string
- type VulnerabilityRecord_Severity
- func (VulnerabilityRecord_Severity) Descriptor() protoreflect.EnumDescriptor
- func (x VulnerabilityRecord_Severity) Enum() *VulnerabilityRecord_Severity
- func (VulnerabilityRecord_Severity) EnumDescriptor() ([]byte, []int)deprecated
- func (x VulnerabilityRecord_Severity) Number() protoreflect.EnumNumber
- func (x VulnerabilityRecord_Severity) String() string
- func (VulnerabilityRecord_Severity) Type() protoreflect.EnumType
Constants ¶
const (
Attestations_List_FullMethodName = "/chainguard.platform.tenant.Attestations/List"
)
const (
Sboms_List_FullMethodName = "/chainguard.platform.tenant.Sboms/List"
)
const (
Signatures_List_FullMethodName = "/chainguard.platform.tenant.Signatures/List"
)
const (
VulnReports_List_FullMethodName = "/chainguard.platform.tenant.VulnReports/List"
)
Variables ¶
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.
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.
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.
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.
var Attestations_ServiceDesc = grpc.ServiceDesc{ ServiceName: "chainguard.platform.tenant.Attestations", HandlerType: (*AttestationsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _Attestations_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "attestation.platform.proto", }
Attestations_ServiceDesc is the grpc.ServiceDesc for Attestations service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_attestation_platform_proto protoreflect.FileDescriptor
var File_sbom_platform_proto protoreflect.FileDescriptor
var File_signature_platform_proto protoreflect.FileDescriptor
var File_vuln_platform_proto protoreflect.FileDescriptor
var Sboms_ServiceDesc = grpc.ServiceDesc{ ServiceName: "chainguard.platform.tenant.Sboms", HandlerType: (*SbomsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _Sboms_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sbom.platform.proto", }
Sboms_ServiceDesc is the grpc.ServiceDesc for Sboms service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Signatures_ServiceDesc = grpc.ServiceDesc{ ServiceName: "chainguard.platform.tenant.Signatures", HandlerType: (*SignaturesServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _Signatures_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "signature.platform.proto", }
Signatures_ServiceDesc is the grpc.ServiceDesc for Signatures service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var VulnReports_ServiceDesc = grpc.ServiceDesc{ ServiceName: "chainguard.platform.tenant.VulnReports", HandlerType: (*VulnReportsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _VulnReports_List_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "vuln.platform.proto", }
VulnReports_ServiceDesc is the grpc.ServiceDesc for VulnReports service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAttestationsHandler ¶
func RegisterAttestationsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAttestationsHandler registers the http handlers for service Attestations to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAttestationsHandlerClient ¶
func RegisterAttestationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AttestationsClient) error
RegisterAttestationsHandlerClient registers the http handlers for service Attestations to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AttestationsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AttestationsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AttestationsClient" to call the correct interceptors.
func RegisterAttestationsHandlerFromEndpoint ¶
func RegisterAttestationsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAttestationsHandlerFromEndpoint is same as RegisterAttestationsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAttestationsHandlerServer ¶
func RegisterAttestationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AttestationsServer) error
RegisterAttestationsHandlerServer registers the http handlers for service Attestations to "mux". UnaryRPC :call AttestationsServer 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 RegisterAttestationsHandlerFromEndpoint instead.
func RegisterAttestationsServer ¶
func RegisterAttestationsServer(s grpc.ServiceRegistrar, srv AttestationsServer)
func RegisterSbomsHandler ¶
RegisterSbomsHandler registers the http handlers for service Sboms to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSbomsHandlerClient ¶
func RegisterSbomsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SbomsClient) error
RegisterSbomsHandlerClient registers the http handlers for service Sboms to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SbomsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SbomsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SbomsClient" to call the correct interceptors.
func RegisterSbomsHandlerFromEndpoint ¶
func RegisterSbomsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSbomsHandlerFromEndpoint is same as RegisterSbomsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSbomsHandlerServer ¶
func RegisterSbomsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SbomsServer) error
RegisterSbomsHandlerServer registers the http handlers for service Sboms to "mux". UnaryRPC :call SbomsServer 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 RegisterSbomsHandlerFromEndpoint instead.
func RegisterSbomsServer ¶
func RegisterSbomsServer(s grpc.ServiceRegistrar, srv SbomsServer)
func RegisterSignaturesServer ¶
func RegisterSignaturesServer(s grpc.ServiceRegistrar, srv SignaturesServer)
func RegisterVulnReportsHandler ¶
func RegisterVulnReportsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterVulnReportsHandler registers the http handlers for service VulnReports to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterVulnReportsHandlerClient ¶
func RegisterVulnReportsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client VulnReportsClient) error
RegisterVulnReportsHandlerClient registers the http handlers for service VulnReports to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "VulnReportsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "VulnReportsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "VulnReportsClient" to call the correct interceptors.
func RegisterVulnReportsHandlerFromEndpoint ¶
func RegisterVulnReportsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterVulnReportsHandlerFromEndpoint is same as RegisterVulnReportsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterVulnReportsHandlerServer ¶
func RegisterVulnReportsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server VulnReportsServer) error
RegisterVulnReportsHandlerServer registers the http handlers for service VulnReports to "mux". UnaryRPC :call VulnReportsServer 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 RegisterVulnReportsHandlerFromEndpoint instead.
func RegisterVulnReportsServer ¶
func RegisterVulnReportsServer(s grpc.ServiceRegistrar, srv VulnReportsServer)
Types ¶
type Attestation ¶
type Attestation struct { // id, The Attestation UIDP at which this Attestation resides in the hierarchy. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // raw_attestation is a free form type to stub in any attestations so we don't end up a // adding new tables for all the new type of attestations, initial goal is to add image configs // and anything which comes up after that RawAttestation []byte `protobuf:"bytes,2,opt,name=raw_attestation,json=rawAttestation,proto3" json:"raw_attestation,omitempty"` // format holds the Document format type Format string `protobuf:"bytes,3,opt,name=format,proto3" json:"format,omitempty"` // generated_at holds when the Attestation was generated. GeneratedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=generated_at,json=generatedAt,proto3" json:"generated_at,omitempty"` // Name of the Attestation. Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // Short description of the Attestation Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` // digest of the Attestation when ingested Digest *string `protobuf:"bytes,7,opt,name=digest,proto3,oneof" json:"digest,omitempty"` // contains filtered or unexported fields }
Attestation represents a normalized Attestation 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 (*Attestation) Descriptor
deprecated
func (*Attestation) Descriptor() ([]byte, []int)
Deprecated: Use Attestation.ProtoReflect.Descriptor instead.
func (*Attestation) GetDescription ¶
func (x *Attestation) GetDescription() string
func (*Attestation) GetDigest ¶
func (x *Attestation) GetDigest() string
func (*Attestation) GetFormat ¶
func (x *Attestation) GetFormat() string
func (*Attestation) GetGeneratedAt ¶
func (x *Attestation) GetGeneratedAt() *timestamppb.Timestamp
func (*Attestation) GetId ¶
func (x *Attestation) GetId() string
func (*Attestation) GetName ¶
func (x *Attestation) GetName() string
func (*Attestation) GetRawAttestation ¶
func (x *Attestation) GetRawAttestation() []byte
func (*Attestation) ProtoMessage ¶
func (*Attestation) ProtoMessage()
func (*Attestation) ProtoReflect ¶
func (x *Attestation) ProtoReflect() protoreflect.Message
func (*Attestation) Reset ¶
func (x *Attestation) Reset()
func (*Attestation) String ¶
func (x *Attestation) String() string
type AttestationFilter ¶
type AttestationFilter 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"` // contains filtered or unexported fields }
func (*AttestationFilter) Descriptor
deprecated
func (*AttestationFilter) Descriptor() ([]byte, []int)
Deprecated: Use AttestationFilter.ProtoReflect.Descriptor instead.
func (*AttestationFilter) GetId ¶
func (x *AttestationFilter) GetId() string
func (*AttestationFilter) GetUidp ¶
func (x *AttestationFilter) GetUidp() *v1.UIDPFilter
func (*AttestationFilter) ProtoMessage ¶
func (*AttestationFilter) ProtoMessage()
func (*AttestationFilter) ProtoReflect ¶
func (x *AttestationFilter) ProtoReflect() protoreflect.Message
func (*AttestationFilter) Reset ¶
func (x *AttestationFilter) Reset()
func (*AttestationFilter) String ¶
func (x *AttestationFilter) String() string
type AttestationList ¶
type AttestationList struct { Items []*Attestation `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*AttestationList) Descriptor
deprecated
func (*AttestationList) Descriptor() ([]byte, []int)
Deprecated: Use AttestationList.ProtoReflect.Descriptor instead.
func (*AttestationList) GetItems ¶
func (x *AttestationList) GetItems() []*Attestation
func (*AttestationList) ProtoMessage ¶
func (*AttestationList) ProtoMessage()
func (*AttestationList) ProtoReflect ¶
func (x *AttestationList) ProtoReflect() protoreflect.Message
func (*AttestationList) Reset ¶
func (x *AttestationList) Reset()
func (*AttestationList) String ¶
func (x *AttestationList) String() string
type AttestationsClient ¶
type AttestationsClient interface {
List(ctx context.Context, in *AttestationFilter, opts ...grpc.CallOption) (*AttestationList, error)
}
AttestationsClient is the client API for Attestations 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 NewAttestationsClient ¶
func NewAttestationsClient(cc grpc.ClientConnInterface) AttestationsClient
type AttestationsServer ¶
type AttestationsServer interface { List(context.Context, *AttestationFilter) (*AttestationList, error) // contains filtered or unexported methods }
AttestationsServer is the server API for Attestations service. All implementations must embed UnimplementedAttestationsServer for forward compatibility
type Clients ¶
type Clients interface { Sboms() SbomsClient Signatures() SignaturesClient VulnReports() VulnReportsClient Close() error }
func NewClientsFromConnection ¶
func NewClientsFromConnection(conn *grpc.ClientConn) Clients
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 (x *ComponentGraph_Edge) GetType() ComponentGraph_Edge_Type
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) Descriptor() protoreflect.EnumDescriptor
func (ComponentGraph_Edge_Type) Enum ¶
func (x ComponentGraph_Edge_Type) Enum() *ComponentGraph_Edge_Type
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 (x ComponentGraph_Edge_Type) Number() protoreflect.EnumNumber
func (ComponentGraph_Edge_Type) String ¶
func (x ComponentGraph_Edge_Type) String() string
func (ComponentGraph_Edge_Type) Type ¶
func (ComponentGraph_Edge_Type) Type() protoreflect.EnumType
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) ProtoMessage ¶
func (*File2) ProtoMessage()
func (*File2) ProtoReflect ¶
func (x *File2) ProtoReflect() protoreflect.Message
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) GetVersions ¶
func (*Fix) ProtoMessage ¶
func (*Fix) ProtoMessage()
func (*Fix) ProtoReflect ¶
func (x *Fix) ProtoReflect() protoreflect.Message
type Fix_State ¶
type Fix_State int32
func (Fix_State) Descriptor ¶
func (Fix_State) Descriptor() protoreflect.EnumDescriptor
func (Fix_State) EnumDescriptor
deprecated
func (Fix_State) Number ¶
func (x Fix_State) Number() protoreflect.EnumNumber
func (Fix_State) Type ¶
func (Fix_State) Type() protoreflect.EnumType
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) GetDescription ¶
func (*Package2) GetLicense ¶
func (*Package2) GetVersion ¶
func (*Package2) ProtoMessage ¶
func (*Package2) ProtoMessage()
func (*Package2) ProtoReflect ¶
func (x *Package2) ProtoReflect() protoreflect.Message
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) GetAuthors ¶
func (*Sbom2) GetDescription ¶
func (*Sbom2) GetGeneratedAt ¶
func (x *Sbom2) GetGeneratedAt() *timestamppb.Timestamp
func (*Sbom2) GetGraph ¶
func (x *Sbom2) GetGraph() *ComponentGraph
func (*Sbom2) GetLastSeen ¶
func (x *Sbom2) GetLastSeen() *timestamppb.Timestamp
func (*Sbom2) GetRawSbom ¶
func (*Sbom2) GetSource ¶
func (x *Sbom2) GetSource() Sbom2_Source
func (*Sbom2) ProtoMessage ¶
func (*Sbom2) ProtoMessage()
func (*Sbom2) ProtoReflect ¶
func (x *Sbom2) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Sbom2List) ProtoMessage()
func (*Sbom2List) ProtoReflect ¶
func (x *Sbom2List) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
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 (x Sbom2_Source) Number() protoreflect.EnumNumber
func (Sbom2_Source) String ¶
func (x Sbom2_Source) String() string
func (Sbom2_Source) Type ¶
func (Sbom2_Source) Type() protoreflect.EnumType
type SbomsClient ¶
type SbomsClient interface {
List(ctx context.Context, in *Sbom2Filter, opts ...grpc.CallOption) (*Sbom2List, error)
}
SbomsClient is the client API for Sboms 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 NewSbomsClient ¶
func NewSbomsClient(cc grpc.ClientConnInterface) SbomsClient
type SbomsServer ¶
type SbomsServer interface { List(context.Context, *Sbom2Filter) (*Sbom2List, error) // contains filtered or unexported methods }
SbomsServer is the server API for Sboms service. All implementations must embed UnimplementedSbomsServer for forward compatibility
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) GetVersion ¶ added in v0.1.15
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
type Signature ¶
type Signature struct { // id, The Signature UIDP at which this Signature resides. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // name of the Signature. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // a short description of this Signature. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // last_seen tracks the timestamp at which this signature was last seen. LastSeen *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_seen,json=lastSeen,proto3" json:"last_seen,omitempty"` // predicate_type is an optional field that captures the type of signed // metadata this signature has signed. // - For simple signatures (e.g. directly signed artifact), this will // be empty to represent the "null claim". // - For signed claims (e.g. attestations), this will hold the in-toto // predicate type of the signed claim. PredicateType string `protobuf:"bytes,5,opt,name=predicate_type,json=predicateType,proto3" json:"predicate_type,omitempty"` // Types that are assignable to Kind: // // *Signature_None // *Signature_Keyless_ // *Signature_Key_ Kind isSignature_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
func (*Signature) Descriptor
deprecated
func (*Signature) GetDescription ¶
func (*Signature) GetKey ¶
func (x *Signature) GetKey() *Signature_Key
func (*Signature) GetKeyless ¶
func (x *Signature) GetKeyless() *Signature_Keyless
func (*Signature) GetLastSeen ¶
func (x *Signature) GetLastSeen() *timestamppb.Timestamp
func (*Signature) GetPredicateType ¶
func (*Signature) ProtoMessage ¶
func (*Signature) ProtoMessage()
func (*Signature) ProtoReflect ¶
func (x *Signature) ProtoReflect() protoreflect.Message
type SignatureFilter ¶
type SignatureFilter struct { Uidp *v1.UIDPFilter `protobuf:"bytes,1,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,2,opt,name=active_since,json=activeSince,proto3" json:"active_since,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` PredicateType *string `protobuf:"bytes,4,opt,name=predicate_type,json=predicateType,proto3,oneof" json:"predicate_type,omitempty"` // contains filtered or unexported fields }
func (*SignatureFilter) Descriptor
deprecated
func (*SignatureFilter) Descriptor() ([]byte, []int)
Deprecated: Use SignatureFilter.ProtoReflect.Descriptor instead.
func (*SignatureFilter) GetActiveSince ¶
func (x *SignatureFilter) GetActiveSince() *timestamppb.Timestamp
func (*SignatureFilter) GetName ¶
func (x *SignatureFilter) GetName() string
func (*SignatureFilter) GetPredicateType ¶
func (x *SignatureFilter) GetPredicateType() string
func (*SignatureFilter) GetUidp ¶
func (x *SignatureFilter) GetUidp() *v1.UIDPFilter
func (*SignatureFilter) ProtoMessage ¶
func (*SignatureFilter) ProtoMessage()
func (*SignatureFilter) ProtoReflect ¶
func (x *SignatureFilter) ProtoReflect() protoreflect.Message
func (*SignatureFilter) Reset ¶
func (x *SignatureFilter) Reset()
func (*SignatureFilter) String ¶
func (x *SignatureFilter) String() string
type SignatureList ¶
type SignatureList struct { Items []*Signature `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*SignatureList) Descriptor
deprecated
func (*SignatureList) Descriptor() ([]byte, []int)
Deprecated: Use SignatureList.ProtoReflect.Descriptor instead.
func (*SignatureList) GetItems ¶
func (x *SignatureList) GetItems() []*Signature
func (*SignatureList) ProtoMessage ¶
func (*SignatureList) ProtoMessage()
func (*SignatureList) ProtoReflect ¶
func (x *SignatureList) ProtoReflect() protoreflect.Message
func (*SignatureList) Reset ¶
func (x *SignatureList) Reset()
func (*SignatureList) String ¶
func (x *SignatureList) String() string
type Signature_Key ¶
type Signature_Key struct {
// contains filtered or unexported fields
}
func (*Signature_Key) Descriptor
deprecated
func (*Signature_Key) Descriptor() ([]byte, []int)
Deprecated: Use Signature_Key.ProtoReflect.Descriptor instead.
func (*Signature_Key) ProtoMessage ¶
func (*Signature_Key) ProtoMessage()
func (*Signature_Key) ProtoReflect ¶
func (x *Signature_Key) ProtoReflect() protoreflect.Message
func (*Signature_Key) Reset ¶
func (x *Signature_Key) Reset()
func (*Signature_Key) String ¶
func (x *Signature_Key) String() string
type Signature_Key_ ¶
type Signature_Key_ struct { // key is the kind of signature that is attached when a signature // was produced via a static key pair. Key *Signature_Key `protobuf:"bytes,12,opt,name=key,proto3,oneof"` }
type Signature_Keyless ¶
type Signature_Keyless struct { Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` // TODO: Consider making this a oneof when other providers // start producing interesting claims. Github *Signature_Keyless_Github `protobuf:"bytes,3,opt,name=github,proto3" json:"github,omitempty"` // contains filtered or unexported fields }
func (*Signature_Keyless) Descriptor
deprecated
func (*Signature_Keyless) Descriptor() ([]byte, []int)
Deprecated: Use Signature_Keyless.ProtoReflect.Descriptor instead.
func (*Signature_Keyless) GetGithub ¶
func (x *Signature_Keyless) GetGithub() *Signature_Keyless_Github
func (*Signature_Keyless) GetIssuer ¶
func (x *Signature_Keyless) GetIssuer() string
func (*Signature_Keyless) GetSubject ¶
func (x *Signature_Keyless) GetSubject() string
func (*Signature_Keyless) ProtoMessage ¶
func (*Signature_Keyless) ProtoMessage()
func (*Signature_Keyless) ProtoReflect ¶
func (x *Signature_Keyless) ProtoReflect() protoreflect.Message
func (*Signature_Keyless) Reset ¶
func (x *Signature_Keyless) Reset()
func (*Signature_Keyless) String ¶
func (x *Signature_Keyless) String() string
type Signature_Keyless_ ¶
type Signature_Keyless_ struct { // keyless is the kind of signature that is attached when a signature // was produced via a "keyless" flow. Keyless *Signature_Keyless `protobuf:"bytes,11,opt,name=keyless,proto3,oneof"` }
type Signature_Keyless_Github ¶
type Signature_Keyless_Github struct { // OID: 1.3.6.1.4.1.57264.1.2 WorkflowTrigger string `protobuf:"bytes,1,opt,name=workflow_trigger,json=workflowTrigger,proto3" json:"workflow_trigger,omitempty"` // OID: 1.3.6.1.4.1.57264.1.3 WorkflowSha string `protobuf:"bytes,2,opt,name=workflow_sha,json=workflowSha,proto3" json:"workflow_sha,omitempty"` // OID: 1.3.6.1.4.1.57264.1.4 WorkflowName string `protobuf:"bytes,3,opt,name=workflow_name,json=workflowName,proto3" json:"workflow_name,omitempty"` // OID: 1.3.6.1.4.1.57264.1.5 WorkflowRepo string `protobuf:"bytes,4,opt,name=workflow_repo,json=workflowRepo,proto3" json:"workflow_repo,omitempty"` // OID: 1.3.6.1.4.1.57264.1.6 WorkflowRef string `protobuf:"bytes,5,opt,name=workflow_ref,json=workflowRef,proto3" json:"workflow_ref,omitempty"` // contains filtered or unexported fields }
func (*Signature_Keyless_Github) Descriptor
deprecated
func (*Signature_Keyless_Github) Descriptor() ([]byte, []int)
Deprecated: Use Signature_Keyless_Github.ProtoReflect.Descriptor instead.
func (*Signature_Keyless_Github) GetWorkflowName ¶
func (x *Signature_Keyless_Github) GetWorkflowName() string
func (*Signature_Keyless_Github) GetWorkflowRef ¶
func (x *Signature_Keyless_Github) GetWorkflowRef() string
func (*Signature_Keyless_Github) GetWorkflowRepo ¶
func (x *Signature_Keyless_Github) GetWorkflowRepo() string
func (*Signature_Keyless_Github) GetWorkflowSha ¶
func (x *Signature_Keyless_Github) GetWorkflowSha() string
func (*Signature_Keyless_Github) GetWorkflowTrigger ¶
func (x *Signature_Keyless_Github) GetWorkflowTrigger() string
func (*Signature_Keyless_Github) ProtoMessage ¶
func (*Signature_Keyless_Github) ProtoMessage()
func (*Signature_Keyless_Github) ProtoReflect ¶
func (x *Signature_Keyless_Github) ProtoReflect() protoreflect.Message
func (*Signature_Keyless_Github) Reset ¶
func (x *Signature_Keyless_Github) Reset()
func (*Signature_Keyless_Github) String ¶
func (x *Signature_Keyless_Github) String() string
type Signature_None ¶
type SignaturesClient ¶
type SignaturesClient interface {
List(ctx context.Context, in *SignatureFilter, opts ...grpc.CallOption) (*SignatureList, error)
}
SignaturesClient is the client API for Signatures 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 NewSignaturesClient ¶
func NewSignaturesClient(cc grpc.ClientConnInterface) SignaturesClient
type SignaturesServer ¶
type SignaturesServer interface { List(context.Context, *SignatureFilter) (*SignatureList, error) // contains filtered or unexported methods }
SignaturesServer is the server API for Signatures service. All implementations must embed UnimplementedSignaturesServer for forward compatibility
type UnimplementedAttestationsServer ¶
type UnimplementedAttestationsServer struct { }
UnimplementedAttestationsServer must be embedded to have forward compatible implementations.
func (UnimplementedAttestationsServer) List ¶
func (UnimplementedAttestationsServer) List(context.Context, *AttestationFilter) (*AttestationList, error)
type UnimplementedSbomsServer ¶
type UnimplementedSbomsServer struct { }
UnimplementedSbomsServer must be embedded to have forward compatible implementations.
func (UnimplementedSbomsServer) List ¶
func (UnimplementedSbomsServer) List(context.Context, *Sbom2Filter) (*Sbom2List, error)
type UnimplementedSignaturesServer ¶
type UnimplementedSignaturesServer struct { }
UnimplementedSignaturesServer must be embedded to have forward compatible implementations.
func (UnimplementedSignaturesServer) List ¶
func (UnimplementedSignaturesServer) List(context.Context, *SignatureFilter) (*SignatureList, error)
type UnimplementedVulnReportsServer ¶
type UnimplementedVulnReportsServer struct { }
UnimplementedVulnReportsServer must be embedded to have forward compatible implementations.
func (UnimplementedVulnReportsServer) List ¶
func (UnimplementedVulnReportsServer) List(context.Context, *VulnReportFilter) (*VulnReportList, error)
type UnsafeAttestationsServer ¶
type UnsafeAttestationsServer interface {
// contains filtered or unexported methods
}
UnsafeAttestationsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AttestationsServer will result in compilation errors.
type UnsafeSbomsServer ¶
type UnsafeSbomsServer interface {
// contains filtered or unexported methods
}
UnsafeSbomsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SbomsServer will result in compilation errors.
type UnsafeSignaturesServer ¶
type UnsafeSignaturesServer interface {
// contains filtered or unexported methods
}
UnsafeSignaturesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SignaturesServer will result in compilation errors.
type UnsafeVulnReportsServer ¶
type UnsafeVulnReportsServer interface {
// contains filtered or unexported methods
}
UnsafeVulnReportsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VulnReportsServer will result in compilation errors.
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 VulnReportsClient ¶
type VulnReportsClient interface {
List(ctx context.Context, in *VulnReportFilter, opts ...grpc.CallOption) (*VulnReportList, error)
}
VulnReportsClient is the client API for VulnReports 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 NewVulnReportsClient ¶
func NewVulnReportsClient(cc grpc.ClientConnInterface) VulnReportsClient
type VulnReportsServer ¶
type VulnReportsServer interface { List(context.Context, *VulnReportFilter) (*VulnReportList, error) // contains filtered or unexported methods }
VulnReportsServer is the server API for VulnReports service. All implementations must embed UnimplementedVulnReportsServer for forward compatibility
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 (x *VulnerabilityRecord) GetCvss() []*VulnerabilityRecord_Cvss
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 (x *VulnerabilityRecord) GetSeverity() VulnerabilityRecord_Severity
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 (x *VulnerabilityRecord_RelatedVulnerability) GetId() string
func (*VulnerabilityRecord_RelatedVulnerability) GetSource ¶
func (x *VulnerabilityRecord_RelatedVulnerability) GetSource() string
func (*VulnerabilityRecord_RelatedVulnerability) ProtoMessage ¶
func (*VulnerabilityRecord_RelatedVulnerability) ProtoMessage()
func (*VulnerabilityRecord_RelatedVulnerability) ProtoReflect ¶
func (x *VulnerabilityRecord_RelatedVulnerability) ProtoReflect() protoreflect.Message
func (*VulnerabilityRecord_RelatedVulnerability) Reset ¶
func (x *VulnerabilityRecord_RelatedVulnerability) Reset()
func (*VulnerabilityRecord_RelatedVulnerability) String ¶
func (x *VulnerabilityRecord_RelatedVulnerability) String() 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) Descriptor() protoreflect.EnumDescriptor
func (VulnerabilityRecord_Severity) Enum ¶
func (x VulnerabilityRecord_Severity) Enum() *VulnerabilityRecord_Severity
func (VulnerabilityRecord_Severity) EnumDescriptor
deprecated
func (VulnerabilityRecord_Severity) EnumDescriptor() ([]byte, []int)
Deprecated: Use VulnerabilityRecord_Severity.Descriptor instead.
func (VulnerabilityRecord_Severity) Number ¶
func (x VulnerabilityRecord_Severity) Number() protoreflect.EnumNumber
func (VulnerabilityRecord_Severity) String ¶
func (x VulnerabilityRecord_Severity) String() string
func (VulnerabilityRecord_Severity) Type ¶
func (VulnerabilityRecord_Severity) Type() protoreflect.EnumType