Documentation ¶
Index ¶
- func ConvertFromRPCApplications(rpcApps []*common.Application) []ftypes.Application
- func ConvertFromRPCLibraries(rpcLibs []*common.Library) []ftypes.LibraryInfo
- func ConvertFromRPCOS(rpcOS *common.OS) *ftypes.OS
- func ConvertFromRPCPackageInfos(rpcPkgInfos []*common.PackageInfo) []ftypes.PackageInfo
- func ConvertFromRPCPkgs(rpcPkgs []*common.Package) []ftypes.Package
- func ConvertFromRPCPutArtifactRequest(req *cache.PutArtifactRequest) ftypes.ArtifactInfo
- func ConvertFromRPCPutBlobRequest(req *cache.PutBlobRequest) ftypes.BlobInfo
- func ConvertFromRPCResults(rpcResults []*scanner.Result) []report.Result
- func ConvertToMissingBlobsRequest(imageID string, layerIDs []string) *cache.MissingBlobsRequest
- func ConvertToRPCArtifactInfo(imageID string, imageInfo ftypes.ArtifactInfo) *cache.PutArtifactRequest
- func ConvertToRPCBlobInfo(diffID string, layerInfo ftypes.BlobInfo) *cache.PutBlobRequest
- func ConvertToRPCLibraries(libs []deptypes.Library) []*common.Library
- func ConvertToRPCOS(fos *ftypes.OS) *common.OS
- func ConvertToRPCPkgs(pkgs []ftypes.Package) []*common.Package
- func ConvertToRPCScanResponse(results report.Results, os *ftypes.OS, eosl bool) *scanner.ScanResponse
- func ConvertToRPCVulns(vulns []types.DetectedVulnerability) []*common.Vulnerability
- func Retry(f func() error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFromRPCApplications ¶ added in v0.13.0
func ConvertFromRPCApplications(rpcApps []*common.Application) []ftypes.Application
ConvertFromRPCApplications converts common.Application to fanal.Application
func ConvertFromRPCLibraries ¶ added in v0.13.0
func ConvertFromRPCLibraries(rpcLibs []*common.Library) []ftypes.LibraryInfo
ConvertFromRPCLibraries returns list of Fanal library
func ConvertFromRPCOS ¶ added in v0.13.0
ConvertFromRPCOS converts common.OS to fanal.OS
func ConvertFromRPCPackageInfos ¶ added in v0.13.0
func ConvertFromRPCPackageInfos(rpcPkgInfos []*common.PackageInfo) []ftypes.PackageInfo
ConvertFromRPCPackageInfos converts common.PackageInfo to fanal.PackageInfo
func ConvertFromRPCPkgs ¶ added in v0.13.0
ConvertFromRPCPkgs returns list of Fanal package objects
func ConvertFromRPCPutArtifactRequest ¶ added in v0.13.0
func ConvertFromRPCPutArtifactRequest(req *cache.PutArtifactRequest) ftypes.ArtifactInfo
ConvertFromRPCPutArtifactRequest converts cache.PutArtifactRequest to fanal.PutArtifactRequest
func ConvertFromRPCPutBlobRequest ¶ added in v0.13.0
func ConvertFromRPCPutBlobRequest(req *cache.PutBlobRequest) ftypes.BlobInfo
ConvertFromRPCPutBlobRequest returns ftypes.BlobInfo
func ConvertFromRPCResults ¶ added in v0.13.0
ConvertFromRPCResults converts scanner.Result to report.Result
func ConvertToMissingBlobsRequest ¶ added in v0.9.0
func ConvertToMissingBlobsRequest(imageID string, layerIDs []string) *cache.MissingBlobsRequest
ConvertToMissingBlobsRequest returns MissingBlobsRequest object
func ConvertToRPCArtifactInfo ¶ added in v0.13.0
func ConvertToRPCArtifactInfo(imageID string, imageInfo ftypes.ArtifactInfo) *cache.PutArtifactRequest
ConvertToRPCArtifactInfo returns PutArtifactRequest
func ConvertToRPCBlobInfo ¶ added in v0.13.0
func ConvertToRPCBlobInfo(diffID string, layerInfo ftypes.BlobInfo) *cache.PutBlobRequest
ConvertToRPCBlobInfo returns PutBlobRequest
func ConvertToRPCLibraries ¶ added in v0.13.0
ConvertToRPCLibraries returns list of libraries
func ConvertToRPCOS ¶ added in v0.13.0
ConvertToRPCOS returns common.OS
func ConvertToRPCPkgs ¶ added in v0.13.0
ConvertToRPCPkgs returns the list of RPC package objects
func ConvertToRPCScanResponse ¶ added in v0.13.0
func ConvertToRPCScanResponse(results report.Results, os *ftypes.OS, eosl bool) *scanner.ScanResponse
ConvertToRPCScanResponse converts report.Result to ScanResponse
func ConvertToRPCVulns ¶ added in v0.13.0
func ConvertToRPCVulns(vulns []types.DetectedVulnerability) []*common.Vulnerability
ConvertToRPCVulns returns common.Vulnerability
Types ¶
This section is empty.