rpc

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

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

func ConvertFromRPCOS(rpcOS *common.OS) *ftypes.OS

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

func ConvertFromRPCPkgs(rpcPkgs []*common.Package) []ftypes.Package

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

func ConvertFromRPCResults(rpcResults []*scanner.Result) []report.Result

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

func ConvertToRPCLibraries(libs []deptypes.Library) []*common.Library

ConvertToRPCLibraries returns list of libraries

func ConvertToRPCOS added in v0.13.0

func ConvertToRPCOS(fos *ftypes.OS) *common.OS

ConvertToRPCOS returns common.OS

func ConvertToRPCPkgs added in v0.13.0

func ConvertToRPCPkgs(pkgs []ftypes.Package) []*common.Package

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

func Retry added in v0.4.1

func Retry(f func() error) error

Retry executes the function again using backoff until maxRetries or success

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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