Documentation ¶
Index ¶
- func ConvertScanResultsCommonToMap(scanResults model.ScanResultsCommon) map[string]interface{}
- func DeleteScan(ctx context.Context, scanType utils.Neo4jScanType, scanID string) error
- func DeleteScanResults(ctx context.Context, scanType utils.Neo4jScanType, scanID string, ...) error
- func GetBulkScans(ctx context.Context, scanType utils.Neo4jScanType, scanID string) (model.ScanStatusResp, error)
- func GetCloudAccountIDs(ctx context.Context, cloudProviderIds []model.NodeIdentifier, ...) ([]model.NodeIdentifier, error)
- func GetCloudComplianceStats(ctx context.Context, ff reporters.FieldsFilters, scanID string, ...) (model.ComplianceAdditionalInfo, error)
- func GetComplianceBulkScans(ctx context.Context, scanType utils.Neo4jScanType, scanID string) (model.ComplianceScanStatusResp, error)
- func GetComplianceScanStatus(ctx context.Context, scanType utils.Neo4jScanType, scanIDs []string) (model.ComplianceScanStatusResp, error)
- func GetFilters(ctx context.Context, having map[string]interface{}, detectedType string, ...) (map[string][]string, error)
- func GetKubernetesContainerIDs(ctx context.Context, k8sIds []model.NodeIdentifier) ([]model.NodeIdentifier, error)
- func GetKubernetesHostsIDs(ctx context.Context, k8sIds []model.NodeIdentifier) ([]model.NodeIdentifier, error)
- func GetKubernetesImageIDs(ctx context.Context, k8sIds []model.NodeIdentifier) ([]model.NodeIdentifier, error)
- func GetNodesInScanResults(ctx context.Context, scanType utils.Neo4jScanType, resultIds []string) ([]model.ScanResultBasicNode, error)
- func GetPodContainerIDs(ctx context.Context, podIds []model.NodeIdentifier) ([]model.NodeIdentifier, error)
- func GetRegistriesImageIDs(ctx context.Context, registryIds []model.NodeIdentifier) ([]model.NodeIdentifier, error)
- func GetScanResultDiff[T any](ctx context.Context, scanType utils.Neo4jScanType, ...) ([]T, error)
- func GetScanResults[T any](ctx context.Context, scanType utils.Neo4jScanType, scanID string, ...) ([]T, model.ScanResultsCommon, error)
- func GetScanStatus(ctx context.Context, scanType utils.Neo4jScanType, scanIDs []string) (model.ScanStatusResp, error)
- func GetScansList(ctx context.Context, scanType utils.Neo4jScanType, ...) (model.ScanListResp, error)
- func GetSelectedScanResults[T any](ctx context.Context, scanType utils.Neo4jScanType, scanID string, ...) ([]T, model.ScanResultsCommon, error)
- func GetSevCounts(ctx context.Context, ff reporters.FieldsFilters, scanType utils.Neo4jScanType, ...) (map[string]int32, error)
- func Labels2NodeType(labels []interface{}) string
- func MarkScanDeletePending(ctx context.Context, scanType utils.Neo4jScanType, scanIds []string) error
- func NodeIdentifierToIDList(in []model.NodeIdentifier) []string
- func Notify[T any](ctx context.Context, res []T, common model.ScanResultsCommon, scanType string, ...) error
- func NotifyScanResult(ctx context.Context, scanType utils.Neo4jScanType, scanID string, ...) error
- func StopCloudComplianceScan(ctx context.Context, scanIds []string) error
- func StopScan(ctx context.Context, scanType string, scanIds []string) error
- func UpdateScanResultMasked(ctx context.Context, req *model.ScanResultsMaskRequest, value bool) error
- func UpdateScanResultNodeFields(ctx context.Context, scanType utils.Neo4jScanType, scanID string, ...) error
- type NodeNotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertScanResultsCommonToMap ¶
func ConvertScanResultsCommonToMap(scanResults model.ScanResultsCommon) map[string]interface{}
ConvertScanResultsCommonToMap converts ScanResultsCommon to map[string]interface{}
func DeleteScan ¶
DeleteScan Delete entire scan
func DeleteScanResults ¶
func DeleteScanResults(ctx context.Context, scanType utils.Neo4jScanType, scanID string, nodeIDs []string) error
DeleteScanResults Delete selected scan results (cves, secrets, etc)
func GetBulkScans ¶
func GetBulkScans(ctx context.Context, scanType utils.Neo4jScanType, scanID string) (model.ScanStatusResp, error)
func GetCloudAccountIDs ¶
func GetCloudAccountIDs(ctx context.Context, cloudProviderIds []model.NodeIdentifier, filters *reporters.FieldsFilters) ([]model.NodeIdentifier, error)
func GetCloudComplianceStats ¶
func GetCloudComplianceStats(ctx context.Context, ff reporters.FieldsFilters, scanID string, neo4jComplianceType utils.Neo4jScanType) (model.ComplianceAdditionalInfo, error)
func GetComplianceBulkScans ¶
func GetComplianceBulkScans(ctx context.Context, scanType utils.Neo4jScanType, scanID string) (model.ComplianceScanStatusResp, error)
func GetComplianceScanStatus ¶
func GetComplianceScanStatus(ctx context.Context, scanType utils.Neo4jScanType, scanIDs []string) (model.ComplianceScanStatusResp, error)
func GetFilters ¶
func GetKubernetesContainerIDs ¶
func GetKubernetesContainerIDs(ctx context.Context, k8sIds []model.NodeIdentifier) ([]model.NodeIdentifier, error)
func GetKubernetesHostsIDs ¶
func GetKubernetesHostsIDs(ctx context.Context, k8sIds []model.NodeIdentifier) ([]model.NodeIdentifier, error)
func GetKubernetesImageIDs ¶
func GetKubernetesImageIDs(ctx context.Context, k8sIds []model.NodeIdentifier) ([]model.NodeIdentifier, error)
func GetNodesInScanResults ¶
func GetNodesInScanResults(ctx context.Context, scanType utils.Neo4jScanType, resultIds []string) ([]model.ScanResultBasicNode, error)
func GetPodContainerIDs ¶
func GetPodContainerIDs(ctx context.Context, podIds []model.NodeIdentifier) ([]model.NodeIdentifier, error)
func GetRegistriesImageIDs ¶
func GetRegistriesImageIDs(ctx context.Context, registryIds []model.NodeIdentifier) ([]model.NodeIdentifier, error)
func GetScanResultDiff ¶
func GetScanResultDiff[T any](ctx context.Context, scanType utils.Neo4jScanType, baseScanID, compareToScanID string, ff reporters.FieldsFilters, fw model.FetchWindow) ([]T, error)
func GetScanResults ¶
func GetScanResults[T any](ctx context.Context, scanType utils.Neo4jScanType, scanID string, ff reporters.FieldsFilters, fw model.FetchWindow) ([]T, model.ScanResultsCommon, error)
func GetScanStatus ¶
func GetScanStatus(ctx context.Context, scanType utils.Neo4jScanType, scanIDs []string) (model.ScanStatusResp, error)
func GetScansList ¶
func GetScansList(ctx context.Context, scanType utils.Neo4jScanType, nodeIDs []model.NodeIdentifier, ff reporters.FieldsFilters, fw model.FetchWindow) (model.ScanListResp, error)
func GetSelectedScanResults ¶
func GetSelectedScanResults[T any](ctx context.Context, scanType utils.Neo4jScanType, scanID string, scanIDs []string) ([]T, model.ScanResultsCommon, error)
func GetSevCounts ¶
func GetSevCounts(ctx context.Context, ff reporters.FieldsFilters, scanType utils.Neo4jScanType, scanID string) (map[string]int32, error)
func Labels2NodeType ¶
func Labels2NodeType(labels []interface{}) string
func MarkScanDeletePending ¶
func NodeIdentifierToIDList ¶
func NodeIdentifierToIDList(in []model.NodeIdentifier) []string
func NotifyScanResult ¶
func StopCloudComplianceScan ¶
func UpdateScanResultMasked ¶
Types ¶
type NodeNotFoundError ¶
type NodeNotFoundError struct {
// contains filtered or unexported fields
}
func (*NodeNotFoundError) Error ¶
func (ve *NodeNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.