Documentation
¶
Index ¶
- func AddPipelineTemplate(content []byte, template string) string
- func CreateNewVulnEventBasedOnComment(vulnID string, vulnType dtos.VulnType, userID, comment string, ...) models.VulnEvent
- func GenerateFourDigitNumber() int
- func GetLabels(vuln models.Vuln) []string
- func IsConnectedToThirdPartyIntegration(asset models.Asset) bool
- func RenderMarkdown(firstPartyVuln models.FirstPartyVuln, ...) string
- func RenderPathToComponent(componentRepository shared.ComponentRepository, assetID uuid.UUID, ...) (string, error)
- func SetupAndPushPipeline(accessToken string, gitlabURL string, projectName string, templateID string, ...) error
- func ShouldCreateIssues(assetVersion models.AssetVersion) bool
- func ShouldCreateThisIssue(asset models.Asset, dependencyVuln *models.DependencyVuln) bool
- type ExpectedIssueState
- type Label
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPipelineTemplate ¶
func GenerateFourDigitNumber ¶
func GenerateFourDigitNumber() int
func RenderMarkdown ¶
func RenderMarkdown(firstPartyVuln models.FirstPartyVuln, baseURL, orgSlug, projectSlug, assetSlug, assetVersionSlug string) string
func RenderPathToComponent ¶
func RenderPathToComponent(componentRepository shared.ComponentRepository, assetID uuid.UUID, assetVersionName string, artifacts []models.Artifact, pURL string) (string, error)
this function returns a string containing a mermaids js flow chart to the given pURL
func SetupAndPushPipeline ¶
func ShouldCreateIssues ¶
func ShouldCreateIssues(assetVersion models.AssetVersion) bool
func ShouldCreateThisIssue ¶
func ShouldCreateThisIssue(asset models.Asset, dependencyVuln *models.DependencyVuln) bool
Types ¶
type ExpectedIssueState ¶
type ExpectedIssueState string
const ( ExpectedIssueStateOpen ExpectedIssueState = "open" ExpectedIssueStateClosed ExpectedIssueState = "closed" )
func GetExpectedIssueState ¶
func GetExpectedIssueState(asset models.Asset, dependencyVuln *models.DependencyVuln) ExpectedIssueState
func GetExpectedIssueStateForFirstPartyVuln ¶
func GetExpectedIssueStateForFirstPartyVuln(asset models.Asset, firstPartyVuln *models.FirstPartyVuln) ExpectedIssueState
func (ExpectedIssueState) ToGithub ¶
func (e ExpectedIssueState) ToGithub() string
func (ExpectedIssueState) ToGitlab ¶
func (e ExpectedIssueState) ToGitlab() string
Click to show internal directories.
Click to hide internal directories.