Documentation
¶
Index ¶
- 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 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 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 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) (database.JSONB, error)
- func VulnEventDTOToModel(dto dtos.VulnEventDTO) models.VulnEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 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 ReleaseItemToDTO ¶
func ReleaseItemToDTO(i models.ReleaseItem) dtos.ReleaseItemDTO
func ReleaseToDTO ¶
func ReleaseToDTO(r models.Release) dtos.ReleaseDTO
func SnippetContentsToJSON ¶
func SnippetContentsToJSON(s dtos.SnippetContents) (database.JSONB, error)
func VulnEventDTOToModel ¶
func VulnEventDTOToModel(dto dtos.VulnEventDTO) models.VulnEvent
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
- project_transformer.go
- release_transformer.go
- statistics_transformer.go
- vulnevent_transformer.go
Click to show internal directories.
Click to hide internal directories.