rpc

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFromDeleteBlobsRequest added in v0.25.0

func ConvertFromDeleteBlobsRequest(deleteBlobsRequest *cache.DeleteBlobsRequest) []string

func ConvertFromRPCApplications added in v0.13.0

func ConvertFromRPCApplications(rpcApps []*common.Application) []ftypes.Application

ConvertFromRPCApplications converts common.Application to fanal.Application

func ConvertFromRPCCode added in v0.31.3

func ConvertFromRPCCode(rpcCode *common.Code) ftypes.Code

func ConvertFromRPCCustomResources added in v0.24.0

func ConvertFromRPCCustomResources(rpcCustomResources []*common.CustomResource) []ftypes.CustomResource

ConvertFromRPCCustomResources converts array of cache.CustomResource to fanal.CustomResource

func ConvertFromRPCDataSource added in v0.23.0

func ConvertFromRPCDataSource(ds *common.DataSource) *dbTypes.DataSource

ConvertFromRPCDataSource converts *common.DataSource to *dbTypes.DataSource

func ConvertFromRPCLayer added in v0.18.2

func ConvertFromRPCLayer(rpcLayer *common.Layer) ftypes.Layer

ConvertFromRPCLayer converts *common.Layer to fanal.Layer

func ConvertFromRPCMisconfResults added in v0.19.0

func ConvertFromRPCMisconfResults(rpcResults []*common.MisconfResult) []ftypes.MisconfResult

ConvertFromRPCMisconfResults converts common.MisconfResult to fanal.MisconfResult

func ConvertFromRPCMisconfigurations added in v0.19.0

func ConvertFromRPCMisconfigurations(rpcMisconfs []*common.Misconfiguration) []ftypes.Misconfiguration

ConvertFromRPCMisconfigurations converts common.Misconfiguration to fanal.Misconfiguration

func ConvertFromRPCMisconfs added in v0.19.0

func ConvertFromRPCMisconfs(rpcMisconfs []*common.DetectedMisconfiguration) []types.DetectedMisconfiguration

ConvertFromRPCMisconfs converts []*common.DetectedMisconfigurations to []types.DetectedMisconfiguration

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 ConvertFromRPCRepository added in v0.26.0

func ConvertFromRPCRepository(rpcRepo *common.Repository) *ftypes.Repository

ConvertFromRPCRepository converts common.Repository to fanal.Repository

func ConvertFromRPCResults added in v0.13.0

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

ConvertFromRPCResults converts scanner.Result to types.Result

func ConvertFromRPCSecretFindings added in v0.31.3

func ConvertFromRPCSecretFindings(rpcFindings []*common.SecretFinding) []ftypes.SecretFinding

func ConvertFromRPCSecrets added in v0.31.3

func ConvertFromRPCSecrets(recSecrets []*common.Secret) []ftypes.Secret

func ConvertFromRPCVulns added in v0.13.0

func ConvertFromRPCVulns(rpcVulns []*common.Vulnerability) []types.DetectedVulnerability

ConvertFromRPCVulns converts []*common.Vulnerability to []types.DetectedVulnerability

func ConvertToDeleteBlobsRequest added in v0.25.0

func ConvertToDeleteBlobsRequest(blobIDs []string) *cache.DeleteBlobsRequest

func ConvertToMisconfResults added in v0.19.0

func ConvertToMisconfResults(results []ftypes.MisconfResult) []*common.MisconfResult

ConvertToMisconfResults returns common.MisconfResult

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, blobInfo ftypes.BlobInfo) *cache.PutBlobRequest

ConvertToRPCBlobInfo returns PutBlobRequest

func ConvertToRPCCode added in v0.31.3

func ConvertToRPCCode(code ftypes.Code) *common.Code

func ConvertToRPCCustomResources added in v0.31.0

func ConvertToRPCCustomResources(resources []ftypes.CustomResource) []*common.CustomResource

func ConvertToRPCDataSource added in v0.23.0

func ConvertToRPCDataSource(ds *dbTypes.DataSource) *common.DataSource

ConvertToRPCDataSource returns common.DataSource

func ConvertToRPCLayer added in v0.18.2

func ConvertToRPCLayer(layer ftypes.Layer) *common.Layer

ConvertToRPCLayer returns common.Layer

func ConvertToRPCMisconfs added in v0.19.0

func ConvertToRPCMisconfs(misconfs []types.DetectedMisconfiguration) []*common.DetectedMisconfiguration

ConvertToRPCMisconfs returns common.DetectedMisconfigurations

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 ConvertToRPCRepository added in v0.26.0

func ConvertToRPCRepository(repo *ftypes.Repository) *common.Repository

ConvertToRPCRepository returns common.Repository

func ConvertToRPCScanResponse added in v0.13.0

func ConvertToRPCScanResponse(results types.Results, fos *ftypes.OS) *scanner.ScanResponse

ConvertToRPCScanResponse converts types.Result to ScanResponse

func ConvertToRPCSecretFindings added in v0.31.3

func ConvertToRPCSecretFindings(findings []ftypes.SecretFinding) []*common.SecretFinding

func ConvertToRPCSecrets added in v0.31.3

func ConvertToRPCSecrets(secrets []ftypes.Secret) []*common.Secret

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