commonint

package
v0.17.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2025 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPipelineTemplate

func AddPipelineTemplate(content []byte, template string) string

func CreateNewVulnEventBasedOnComment

func CreateNewVulnEventBasedOnComment(vulnID string, vulnType models.VulnType, userID, comment string, artifactName string) models.VulnEvent

func GenerateFourDigitNumber

func GenerateFourDigitNumber() int

func GetLabels

func GetLabels(vuln models.Vuln) []string

func RenderPathToComponent

func RenderPathToComponent(componentRepository core.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 SetupAndPushPipeline(accessToken string, gitlabURL string, projectName string, templateID string, branchName string) error

Types

type Label added in v0.17.3

type Label struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	Color       string `json:"color"`
	Description string `json:"description"`
}

func GetAllRiskLabelsWithColors added in v0.17.3

func GetAllRiskLabelsWithColors() []Label

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL