rpc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func ByValueOr

func ByValueOr[K, V comparable](m map[K]V, val V, d K) K

ByValueOr returns the key from the map of the first matched value, or default key if the value is not present.

func ConvertFromDeleteBlobsRequest

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

func ConvertFromRPCApplications

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

ConvertFromRPCApplications converts common.Application to fanal.Application

func ConvertFromRPCCauseMetadata

func ConvertFromRPCCauseMetadata(rpcCause *common.CauseMetadata) ftypes.CauseMetadata

func ConvertFromRPCCode

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

func ConvertFromRPCCustomResources

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

ConvertFromRPCCustomResources converts array of cache.CustomResource to fanal.CustomResource

func ConvertFromRPCDataSource

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

ConvertFromRPCDataSource converts *common.DataSource to *dbTypes.DataSource

func ConvertFromRPCDetectedLicenses

func ConvertFromRPCDetectedLicenses(rpcLicenses []*common.DetectedLicense) []types.DetectedLicense

func ConvertFromRPCDetectedSecrets

func ConvertFromRPCDetectedSecrets(rpcFindings []*common.SecretFinding) []types.DetectedSecret

func ConvertFromRPCLayer

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

ConvertFromRPCLayer converts *common.Layer to fanal.Layer

func ConvertFromRPCLicenseCategory

func ConvertFromRPCLicenseCategory(rpcCategory common.LicenseCategory_Enum) ftypes.LicenseCategory

func ConvertFromRPCLicenseFiles

func ConvertFromRPCLicenseFiles(rpcLicenses []*common.LicenseFile) []ftypes.LicenseFile

func ConvertFromRPCLicenseFindings

func ConvertFromRPCLicenseFindings(rpcFindings []*common.LicenseFinding) ftypes.LicenseFindings

func ConvertFromRPCLicenseType

func ConvertFromRPCLicenseType(rpcLicenseType common.LicenseType_Enum) ftypes.LicenseType

func ConvertFromRPCLocation

func ConvertFromRPCLocation(locs []*common.Location) []ftypes.Location

func ConvertFromRPCMisconfResults

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

ConvertFromRPCMisconfResults converts common.MisconfResult to fanal.MisconfResult

func ConvertFromRPCMisconfigurations

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

ConvertFromRPCMisconfigurations converts common.Misconfiguration to fanal.Misconfiguration

func ConvertFromRPCMisconfs

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

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

func ConvertFromRPCOS

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

ConvertFromRPCOS converts common.OS to fanal.OS

func ConvertFromRPCPackageInfos

func ConvertFromRPCPackageInfos(rpcPkgInfos []*common.PackageInfo) []ftypes.PackageInfo

ConvertFromRPCPackageInfos converts common.PackageInfo to fanal.PackageInfo

func ConvertFromRPCPkgIdentifier

func ConvertFromRPCPkgIdentifier(pkg *common.PkgIdentifier) ftypes.PkgIdentifier

func ConvertFromRPCPkgs

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

ConvertFromRPCPkgs returns list of Fanal package objects

func ConvertFromRPCPolicyMetadata

func ConvertFromRPCPolicyMetadata(rpcPolicy *common.PolicyMetadata) ftypes.PolicyMetadata

func ConvertFromRPCPutArtifactRequest

func ConvertFromRPCPutArtifactRequest(req *cache.PutArtifactRequest) ftypes.ArtifactInfo

ConvertFromRPCPutArtifactRequest converts cache.PutArtifactRequest to fanal.PutArtifactRequest

func ConvertFromRPCPutBlobRequest

func ConvertFromRPCPutBlobRequest(req *cache.PutBlobRequest) ftypes.BlobInfo

ConvertFromRPCPutBlobRequest returns ftypes.BlobInfo

func ConvertFromRPCRepository

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

ConvertFromRPCRepository converts common.Repository to fanal.Repository

func ConvertFromRPCResults

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

ConvertFromRPCResults converts scanner.Result to types.Result

func ConvertFromRPCSecretFindings

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

func ConvertFromRPCSecrets

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

func ConvertFromRPCVulns

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

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

func ConvertToDeleteBlobsRequest

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

func ConvertToMisconfResults

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

ConvertToMisconfResults returns common.MisconfResult

func ConvertToMissingBlobsRequest

func ConvertToMissingBlobsRequest(imageID string, layerIDs []string) *cache.MissingBlobsRequest

ConvertToMissingBlobsRequest returns MissingBlobsRequest object

func ConvertToRPCArtifactInfo

func ConvertToRPCArtifactInfo(imageID string, imageInfo ftypes.ArtifactInfo) *cache.PutArtifactRequest

ConvertToRPCArtifactInfo returns PutArtifactRequest

func ConvertToRPCCauseMetadata

func ConvertToRPCCauseMetadata(cause ftypes.CauseMetadata) *common.CauseMetadata

func ConvertToRPCCode

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

func ConvertToRPCCustomResources

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

func ConvertToRPCDataSource

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

ConvertToRPCDataSource returns common.DataSource

func ConvertToRPCLayer

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

ConvertToRPCLayer returns common.Layer

func ConvertToRPCLicenseCategory

func ConvertToRPCLicenseCategory(category ftypes.LicenseCategory) common.LicenseCategory_Enum

func ConvertToRPCLicenseFiles

func ConvertToRPCLicenseFiles(licenses []ftypes.LicenseFile) []*common.LicenseFile

func ConvertToRPCLicenseFindings

func ConvertToRPCLicenseFindings(findings ftypes.LicenseFindings) []*common.LicenseFinding

func ConvertToRPCLicenseType

func ConvertToRPCLicenseType(ty ftypes.LicenseType) common.LicenseType_Enum

func ConvertToRPCLicenses

func ConvertToRPCLicenses(licenses []types.DetectedLicense) []*common.DetectedLicense

func ConvertToRPCLocations

func ConvertToRPCLocations(pkgLocs []ftypes.Location) []*common.Location

func ConvertToRPCMisconfs

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

ConvertToRPCMisconfs returns common.DetectedMisconfigurations

func ConvertToRPCOS

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

ConvertToRPCOS returns common.OS

func ConvertToRPCPkgIdentifier

func ConvertToRPCPkgIdentifier(pkg ftypes.PkgIdentifier) *common.PkgIdentifier

func ConvertToRPCPkgs

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

ConvertToRPCPkgs returns the list of RPC package objects

func ConvertToRPCPolicyMetadata

func ConvertToRPCPolicyMetadata(policy ftypes.PolicyMetadata) *common.PolicyMetadata

func ConvertToRPCPutBlobRequest

func ConvertToRPCPutBlobRequest(diffID string, blobInfo ftypes.BlobInfo) *cache.PutBlobRequest

ConvertToRPCPutBlobRequest returns PutBlobRequest

func ConvertToRPCRepository

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

ConvertToRPCRepository returns common.Repository

func ConvertToRPCScanResponse

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

ConvertToRPCScanResponse converts types.Result to ScanResponse

func ConvertToRPCSecretFindings

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

func ConvertToRPCSecrets

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

func ConvertToRPCVulns

func ConvertToRPCVulns(vulns []types.DetectedVulnerability) []*common.Vulnerability

ConvertToRPCVulns returns common.Vulnerability

func Retry

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