Documentation ¶
Overview ¶
Package proto provides protobuf related utilities for the SCALIBR binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAdvisoryIDMissing = fmt.Errorf("Advisory ID missing in finding")
ErrAdvisoryIDMissing will be returned if the Advisory ID is not set on a finding.
View Source
var ErrAdvisoryMissing = fmt.Errorf("Advisory missing in finding")
ErrAdvisoryMissing will be returned if the Advisory is not set on a finding.
Functions ¶
func ScanResultToProto ¶
func ScanResultToProto(r *scalibr.ScanResult) (*spb.ScanResult, error)
ScanResultToProto converts a ScanResult go struct into the equivalent proto.
func ValidExtension ¶
ValidExtension returns an error if the file extension is not a proto file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.