Documentation ¶
Index ¶
- Variables
- func ByValueOr[K, V comparable](m map[K]V, val V, d K) K
- func ConvertFromDeleteBlobsRequest(deleteBlobsRequest *cache.DeleteBlobsRequest) []string
- func ConvertFromRPCApplications(rpcApps []*common.Application) []ftypes.Application
- func ConvertFromRPCCauseMetadata(rpcCause *common.CauseMetadata) ftypes.CauseMetadata
- func ConvertFromRPCCode(rpcCode *common.Code) ftypes.Code
- func ConvertFromRPCCustomResources(rpcCustomResources []*common.CustomResource) []ftypes.CustomResource
- func ConvertFromRPCDataSource(ds *common.DataSource) *dbTypes.DataSource
- func ConvertFromRPCDetectedLicenses(rpcLicenses []*common.DetectedLicense) []types.DetectedLicense
- func ConvertFromRPCDetectedSecrets(rpcFindings []*common.SecretFinding) []types.DetectedSecret
- func ConvertFromRPCLayer(rpcLayer *common.Layer) ftypes.Layer
- func ConvertFromRPCLicenseCategory(rpcCategory common.LicenseCategory_Enum) ftypes.LicenseCategory
- func ConvertFromRPCLicenseFiles(rpcLicenses []*common.LicenseFile) []ftypes.LicenseFile
- func ConvertFromRPCLicenseFindings(rpcFindings []*common.LicenseFinding) ftypes.LicenseFindings
- func ConvertFromRPCLicenseType(rpcLicenseType common.LicenseType_Enum) ftypes.LicenseType
- func ConvertFromRPCLocation(locs []*common.Location) []ftypes.Location
- func ConvertFromRPCMisconfResults(rpcResults []*common.MisconfResult) []ftypes.MisconfResult
- func ConvertFromRPCMisconfigurations(rpcMisconfs []*common.Misconfiguration) []ftypes.Misconfiguration
- func ConvertFromRPCMisconfs(rpcMisconfs []*common.DetectedMisconfiguration) []types.DetectedMisconfiguration
- func ConvertFromRPCOS(rpcOS *common.OS) ftypes.OS
- func ConvertFromRPCPackageInfos(rpcPkgInfos []*common.PackageInfo) []ftypes.PackageInfo
- func ConvertFromRPCPkgIdentifier(pkg *common.PkgIdentifier) ftypes.PkgIdentifier
- func ConvertFromRPCPkgs(rpcPkgs []*common.Package) []ftypes.Package
- func ConvertFromRPCPolicyMetadata(rpcPolicy *common.PolicyMetadata) ftypes.PolicyMetadata
- func ConvertFromRPCPutArtifactRequest(req *cache.PutArtifactRequest) ftypes.ArtifactInfo
- func ConvertFromRPCPutBlobRequest(req *cache.PutBlobRequest) ftypes.BlobInfo
- func ConvertFromRPCRepository(rpcRepo *common.Repository) *ftypes.Repository
- func ConvertFromRPCResults(rpcResults []*scanner.Result) []types.Result
- func ConvertFromRPCSecretFindings(rpcFindings []*common.SecretFinding) []ftypes.SecretFinding
- func ConvertFromRPCSecrets(recSecrets []*common.Secret) []ftypes.Secret
- func ConvertFromRPCVulns(rpcVulns []*common.Vulnerability) []types.DetectedVulnerability
- func ConvertToDeleteBlobsRequest(blobIDs []string) *cache.DeleteBlobsRequest
- func ConvertToMisconfResults(results []ftypes.MisconfResult) []*common.MisconfResult
- func ConvertToMissingBlobsRequest(imageID string, layerIDs []string) *cache.MissingBlobsRequest
- func ConvertToRPCArtifactInfo(imageID string, imageInfo ftypes.ArtifactInfo) *cache.PutArtifactRequest
- func ConvertToRPCCauseMetadata(cause ftypes.CauseMetadata) *common.CauseMetadata
- func ConvertToRPCCode(code ftypes.Code) *common.Code
- func ConvertToRPCCustomResources(resources []ftypes.CustomResource) []*common.CustomResource
- func ConvertToRPCDataSource(ds *dbTypes.DataSource) *common.DataSource
- func ConvertToRPCLayer(layer ftypes.Layer) *common.Layer
- func ConvertToRPCLicenseCategory(category ftypes.LicenseCategory) common.LicenseCategory_Enum
- func ConvertToRPCLicenseFiles(licenses []ftypes.LicenseFile) []*common.LicenseFile
- func ConvertToRPCLicenseFindings(findings ftypes.LicenseFindings) []*common.LicenseFinding
- func ConvertToRPCLicenseType(ty ftypes.LicenseType) common.LicenseType_Enum
- func ConvertToRPCLicenses(licenses []types.DetectedLicense) []*common.DetectedLicense
- func ConvertToRPCLocations(pkgLocs []ftypes.Location) []*common.Location
- func ConvertToRPCMisconfs(misconfs []types.DetectedMisconfiguration) []*common.DetectedMisconfiguration
- func ConvertToRPCOS(fos ftypes.OS) *common.OS
- func ConvertToRPCPkgIdentifier(pkg ftypes.PkgIdentifier) *common.PkgIdentifier
- func ConvertToRPCPkgs(pkgs []ftypes.Package) []*common.Package
- func ConvertToRPCPolicyMetadata(policy ftypes.PolicyMetadata) *common.PolicyMetadata
- func ConvertToRPCPutBlobRequest(diffID string, blobInfo ftypes.BlobInfo) *cache.PutBlobRequest
- func ConvertToRPCRepository(repo *ftypes.Repository) *common.Repository
- func ConvertToRPCScanResponse(results types.Results, fos ftypes.OS) *scanner.ScanResponse
- func ConvertToRPCSecretFindings(findings []ftypes.SecretFinding) []*common.SecretFinding
- func ConvertToRPCSecrets(secrets []ftypes.Secret) []*common.Secret
- func ConvertToRPCVulns(vulns []types.DetectedVulnerability) []*common.Vulnerability
- func Retry(f func() error) error
Constants ¶
This section is empty.
Variables ¶
var LicenseCategoryMap = map[common.LicenseCategory_Enum]ftypes.LicenseCategory{ common.LicenseCategory_UNSPECIFIED: "", common.LicenseCategory_FORBIDDEN: ftypes.CategoryForbidden, common.LicenseCategory_RESTRICTED: ftypes.CategoryRestricted, common.LicenseCategory_RECIPROCAL: ftypes.CategoryReciprocal, common.LicenseCategory_NOTICE: ftypes.CategoryNotice, common.LicenseCategory_PERMISSIVE: ftypes.CategoryPermissive, common.LicenseCategory_UNENCUMBERED: ftypes.CategoryUnencumbered, common.LicenseCategory_UNKNOWN: ftypes.CategoryUnknown, }
var LicenseTypeMap = map[common.LicenseType_Enum]ftypes.LicenseType{ common.LicenseType_UNSPECIFIED: "", common.LicenseType_DPKG: ftypes.LicenseTypeDpkg, common.LicenseType_HEADER: ftypes.LicenseTypeHeader, common.LicenseType_LICENSE_FILE: ftypes.LicenseTypeFile, }
Functions ¶
func ByValueOr ¶ added in v0.47.0
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 ¶ 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 ConvertFromRPCCauseMetadata ¶ added in v0.44.0
func ConvertFromRPCCauseMetadata(rpcCause *common.CauseMetadata) ftypes.CauseMetadata
func ConvertFromRPCCode ¶ added in v0.31.3
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 ConvertFromRPCDetectedLicenses ¶ added in v0.47.0
func ConvertFromRPCDetectedLicenses(rpcLicenses []*common.DetectedLicense) []types.DetectedLicense
func ConvertFromRPCDetectedSecrets ¶ added in v0.50.0
func ConvertFromRPCDetectedSecrets(rpcFindings []*common.SecretFinding) []types.DetectedSecret
func ConvertFromRPCLayer ¶ added in v0.18.2
ConvertFromRPCLayer converts *common.Layer to fanal.Layer
func ConvertFromRPCLicenseCategory ¶ added in v0.44.1
func ConvertFromRPCLicenseCategory(rpcCategory common.LicenseCategory_Enum) ftypes.LicenseCategory
func ConvertFromRPCLicenseFiles ¶ added in v0.47.0
func ConvertFromRPCLicenseFiles(rpcLicenses []*common.LicenseFile) []ftypes.LicenseFile
func ConvertFromRPCLicenseFindings ¶ added in v0.47.0
func ConvertFromRPCLicenseFindings(rpcFindings []*common.LicenseFinding) ftypes.LicenseFindings
func ConvertFromRPCLicenseType ¶ added in v0.47.0
func ConvertFromRPCLicenseType(rpcLicenseType common.LicenseType_Enum) ftypes.LicenseType
func ConvertFromRPCLocation ¶ added in v0.50.1
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
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 ConvertFromRPCPkgIdentifier ¶ added in v0.49.0
func ConvertFromRPCPkgIdentifier(pkg *common.PkgIdentifier) ftypes.PkgIdentifier
func ConvertFromRPCPkgs ¶ added in v0.13.0
ConvertFromRPCPkgs returns list of Fanal package objects
func ConvertFromRPCPolicyMetadata ¶ added in v0.44.0
func ConvertFromRPCPolicyMetadata(rpcPolicy *common.PolicyMetadata) ftypes.PolicyMetadata
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
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 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 ConvertToRPCCauseMetadata ¶ added in v0.44.0
func ConvertToRPCCauseMetadata(cause ftypes.CauseMetadata) *common.CauseMetadata
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
ConvertToRPCLayer returns common.Layer
func ConvertToRPCLicenseCategory ¶ added in v0.44.1
func ConvertToRPCLicenseCategory(category ftypes.LicenseCategory) common.LicenseCategory_Enum
func ConvertToRPCLicenseFiles ¶ added in v0.47.0
func ConvertToRPCLicenseFiles(licenses []ftypes.LicenseFile) []*common.LicenseFile
func ConvertToRPCLicenseFindings ¶ added in v0.47.0
func ConvertToRPCLicenseFindings(findings ftypes.LicenseFindings) []*common.LicenseFinding
func ConvertToRPCLicenseType ¶ added in v0.47.0
func ConvertToRPCLicenseType(ty ftypes.LicenseType) common.LicenseType_Enum
func ConvertToRPCLicenses ¶ added in v0.44.1
func ConvertToRPCLicenses(licenses []types.DetectedLicense) []*common.DetectedLicense
func ConvertToRPCLocations ¶ added in v0.50.1
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
ConvertToRPCOS returns common.OS
func ConvertToRPCPkgIdentifier ¶ added in v0.49.0
func ConvertToRPCPkgIdentifier(pkg ftypes.PkgIdentifier) *common.PkgIdentifier
func ConvertToRPCPkgs ¶ added in v0.13.0
ConvertToRPCPkgs returns the list of RPC package objects
func ConvertToRPCPolicyMetadata ¶ added in v0.44.0
func ConvertToRPCPolicyMetadata(policy ftypes.PolicyMetadata) *common.PolicyMetadata
func ConvertToRPCPutBlobRequest ¶ added in v0.44.0
func ConvertToRPCPutBlobRequest(diffID string, blobInfo ftypes.BlobInfo) *cache.PutBlobRequest
ConvertToRPCPutBlobRequest returns PutBlobRequest
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
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 ConvertToRPCVulns ¶ added in v0.13.0
func ConvertToRPCVulns(vulns []types.DetectedVulnerability) []*common.Vulnerability
ConvertToRPCVulns returns common.Vulnerability
Types ¶
This section is empty.