Documentation
¶
Index ¶
- func AffectedComponentsFromOSV(osv *dtos.OSV) []models.AffectedComponent
- func ApplyAssetPatchRequestToModel(assetPatch dtos.AssetPatchRequest, asset *models.Asset) bool
- func ApplyOrgPatchRequestToModel(p dtos.OrgPatchRequest, org *models.Org) bool
- func ApplyProjectPatchRequestToModel(projectPatch dtos.ProjectPatchRequest, project *models.Project) bool
- func ApplyReleasePatchRequestToModel(r dtos.ReleasePatchRequest, rel *models.Release)
- func ArtifactModelToDTO(artifact models.Artifact) dtos.ArtifactDTO
- func ArtifactRiskHistoryToDTO(history models.ArtifactRiskHistory) dtos.RiskHistoryDTO
- func AssetCreateRequestToModel(assetCreateRequest dtos.AssetCreateRequest, projectID uuid.UUID) models.Asset
- func AssetModelToDTO(asset models.Asset) dtos.AssetDTO
- func AssetModelToDetailsDTO(asset models.Asset, members []dtos.UserDTO) dtos.AssetDetailsDTO
- func AssetModelToDetailsWithSecretsDTO(asset models.Asset, members []dtos.UserDTO) dtos.AssetDetailsWithSecretsDTO
- func AssetModelsToDTOs(assets []models.Asset) []dtos.AssetDTO
- func AssetVersionModelToDTO(assetVersion models.AssetVersion) dtos.AssetVersionDTO
- func CVEToDTO(cve models.CVE) dtos.CVEDTO
- func ComponentDependencyToDTO(m models.ComponentDependency) dtos.ComponentDependencyDTO
- func ComponentModelToDTO(m models.Component) dtos.ComponentDTO
- func ComponentOccurrenceToDTO(m models.ComponentOccurrence) dtos.ComponentOccurrenceDTO
- func ConvertVulnEventsToDtos(event []models.VulnEventDetail) []dtos.VulnEventDTO
- func DependencyVulnToDTO(f models.DependencyVuln) dtos.DependencyVulnDTO
- func DependencyVulnToDetailedDTO(dependencyVuln models.DependencyVuln) dtos.DetailedDependencyVulnDTO
- func ExploitModelToDTO(exploit models.Exploit) dtos.ExploitDTO
- func FirstPartyVulnToDto(f models.FirstPartyVuln) dtos.FirstPartyVulnDTO
- func FromJSONSnippetContents(firstPartyVuln models.FirstPartyVuln) (dtos.SnippetContents, error)
- func GetAssetVersionName(vuln models.Vulnerability, ev models.VulnEvent) string
- func GithubAppInstallationToDTO(g models.GithubAppInstallation) dtos.GithubAppInstallationDTO
- func LicenseRiskToDTO(f models.LicenseRisk) dtos.LicenseRiskDTO
- func MaliciousAffectedComponentFromOSV(osv dtos.OSV, maliciousPackageID string) []models.MaliciousAffectedComponent
- func OSVToCVE(osv *dtos.OSV) models.CVE
- func OSVToCVERelationships(osv *dtos.OSV) []models.CVERelationship
- func OrgCreateRequestToModel(c dtos.OrgCreateRequest) models.Org
- func OrgDTOFromModel(org models.Org) dtos.OrgDTO
- func ProjectCreateRequestToModel(projectCreate dtos.ProjectCreateRequest) models.Project
- func ProjectModelToDTO(project models.Project) dtos.ProjectDTO
- func RelationshipToDTO(relation models.CVERelationship) dtos.RelationshipDTO
- func ReleaseCreateRequestToModel(r dtos.ReleaseCreateRequest, projectID uuid.UUID) models.Release
- func ReleaseItemToDTO(i models.ReleaseItem) dtos.ReleaseItemDTO
- func ReleaseToDTO(r models.Release) dtos.ReleaseDTO
- func SnippetContentsToJSON(s dtos.SnippetContents) (databasetypes.JSONB, error)
- func VulnEventDTOToModel(dto dtos.VulnEventDTO) models.VulnEvent
- func VulnInPackageToDependencyVuln(vuln models.VulnInPackage, depthMap map[string]int, assetID uuid.UUID, ...) models.DependencyVuln
- func VulnInPackageToDependencyVulnWithoutArtifact(vuln models.VulnInPackage, depthMap map[string]int, assetID uuid.UUID, ...) models.DependencyVuln
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AffectedComponentsFromOSV ¶
func AffectedComponentsFromOSV(osv *dtos.OSV) []models.AffectedComponent
func ApplyAssetPatchRequestToModel ¶
func ApplyAssetPatchRequestToModel(assetPatch dtos.AssetPatchRequest, asset *models.Asset) bool
func ApplyOrgPatchRequestToModel ¶
func ApplyOrgPatchRequestToModel(p dtos.OrgPatchRequest, org *models.Org) bool
func ApplyProjectPatchRequestToModel ¶
func ApplyProjectPatchRequestToModel(projectPatch dtos.ProjectPatchRequest, project *models.Project) bool
func ApplyReleasePatchRequestToModel ¶
func ApplyReleasePatchRequestToModel(r dtos.ReleasePatchRequest, rel *models.Release)
func ArtifactModelToDTO ¶
func ArtifactModelToDTO(artifact models.Artifact) dtos.ArtifactDTO
func ArtifactRiskHistoryToDTO ¶
func ArtifactRiskHistoryToDTO(history models.ArtifactRiskHistory) dtos.RiskHistoryDTO
func AssetModelToDetailsDTO ¶
func AssetVersionModelToDTO ¶
func AssetVersionModelToDTO(assetVersion models.AssetVersion) dtos.AssetVersionDTO
func ComponentDependencyToDTO ¶
func ComponentDependencyToDTO(m models.ComponentDependency) dtos.ComponentDependencyDTO
func ComponentModelToDTO ¶
func ComponentModelToDTO(m models.Component) dtos.ComponentDTO
func ComponentOccurrenceToDTO ¶
func ComponentOccurrenceToDTO(m models.ComponentOccurrence) dtos.ComponentOccurrenceDTO
func ConvertVulnEventsToDtos ¶
func ConvertVulnEventsToDtos(event []models.VulnEventDetail) []dtos.VulnEventDTO
func DependencyVulnToDTO ¶
func DependencyVulnToDTO(f models.DependencyVuln) dtos.DependencyVulnDTO
func DependencyVulnToDetailedDTO ¶
func DependencyVulnToDetailedDTO(dependencyVuln models.DependencyVuln) dtos.DetailedDependencyVulnDTO
func ExploitModelToDTO ¶
func ExploitModelToDTO(exploit models.Exploit) dtos.ExploitDTO
func FirstPartyVulnToDto ¶
func FirstPartyVulnToDto(f models.FirstPartyVuln) dtos.FirstPartyVulnDTO
func FromJSONSnippetContents ¶
func FromJSONSnippetContents(firstPartyVuln models.FirstPartyVuln) (dtos.SnippetContents, error)
func GetAssetVersionName ¶
func GetAssetVersionName(vuln models.Vulnerability, ev models.VulnEvent) string
func GithubAppInstallationToDTO ¶
func GithubAppInstallationToDTO(g models.GithubAppInstallation) dtos.GithubAppInstallationDTO
func LicenseRiskToDTO ¶
func LicenseRiskToDTO(f models.LicenseRisk) dtos.LicenseRiskDTO
func MaliciousAffectedComponentFromOSV ¶
func MaliciousAffectedComponentFromOSV(osv dtos.OSV, maliciousPackageID string) []models.MaliciousAffectedComponent
MaliciousAffectedComponentFromOSV converts OSV data to MaliciousAffectedComponent entries
func OSVToCVERelationships ¶
func OSVToCVERelationships(osv *dtos.OSV) []models.CVERelationship
need Optimus Prime here
func OrgCreateRequestToModel ¶
func OrgCreateRequestToModel(c dtos.OrgCreateRequest) models.Org
func ProjectCreateRequestToModel ¶
func ProjectCreateRequestToModel(projectCreate dtos.ProjectCreateRequest) models.Project
func ProjectModelToDTO ¶
func ProjectModelToDTO(project models.Project) dtos.ProjectDTO
func RelationshipToDTO ¶
func RelationshipToDTO(relation models.CVERelationship) dtos.RelationshipDTO
func ReleaseItemToDTO ¶
func ReleaseItemToDTO(i models.ReleaseItem) dtos.ReleaseItemDTO
func ReleaseToDTO ¶
func ReleaseToDTO(r models.Release) dtos.ReleaseDTO
func SnippetContentsToJSON ¶
func SnippetContentsToJSON(s dtos.SnippetContents) (databasetypes.JSONB, error)
func VulnEventDTOToModel ¶
func VulnEventDTOToModel(dto dtos.VulnEventDTO) models.VulnEvent
func VulnInPackageToDependencyVuln ¶
func VulnInPackageToDependencyVuln(vuln models.VulnInPackage, depthMap map[string]int, assetID uuid.UUID, assetVersionName string, artifactName string) models.DependencyVuln
func VulnInPackageToDependencyVulnWithoutArtifact ¶
func VulnInPackageToDependencyVulnWithoutArtifact(vuln models.VulnInPackage, depthMap map[string]int, assetID uuid.UUID, assetVersionName string) models.DependencyVuln
Types ¶
This section is empty.
Source Files
¶
- artifact_transformer.go
- asset_transformer.go
- asset_version_transformer.go
- component_transformer.go
- dependency_vuln_transformer.go
- exploit_transformer.go
- first_party_vuln_transformer.go
- license_risk_transformer.go
- org_transformer.go
- osv_transformer.go
- project_transformer.go
- release_transformer.go
- statistics_transformer.go
- vulnevent_transformer.go
Click to show internal directories.
Click to hide internal directories.