model

package
v0.0.0-...-8d31274 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllIssueMatchStatusValuesOrdered = []IssueMatchStatusValues{
	IssueMatchStatusValuesNew,
	IssueMatchStatusValuesRiskAccepted,
	IssueMatchStatusValuesFalsePositive,
	IssueMatchStatusValuesMitigated,
}
View Source
var AllIssueTypesOrdered = []IssueTypes{
	IssueTypesPolicyViolation,
	IssueTypesSecurityEvent,
	IssueTypesVulnerability,
}
View Source
var AllSeverityValuesOrdered = []SeverityValues{
	SeverityValuesCritical,
	SeverityValuesHigh,
	SeverityValuesMedium,
	SeverityValuesLow,
	SeverityValuesNone,
}

Functions

func GetStateFilterType

func GetStateFilterType(sf []StateFilter) []entity.StateFilterType

func NewActivityEntity

func NewActivityEntity(activity *ActivityInput) entity.Activity

func NewComponentEntity

func NewComponentEntity(component *ComponentInput) entity.Component

func NewComponentInstanceEntity

func NewComponentInstanceEntity(componentInstance *ComponentInstanceInput) entity.ComponentInstance

func NewComponentVersionEntity

func NewComponentVersionEntity(componentVersion *ComponentVersionInput) entity.ComponentVersion

func NewEvidenceEntity

func NewEvidenceEntity(evidence *EvidenceInput) entity.Evidence

func NewIssueEntity

func NewIssueEntity(issue *IssueInput) entity.Issue

func NewIssueMatchChangeEntity

func NewIssueMatchChangeEntity(imc *IssueMatchChangeInput) entity.IssueMatchChange

func NewIssueMatchEntity

func NewIssueMatchEntity(im *IssueMatchInput) entity.IssueMatch

func NewIssueRepositoryEntity

func NewIssueRepositoryEntity(repo *IssueRepositoryInput) entity.IssueRepository

func NewIssueVariantEntity

func NewIssueVariantEntity(issueVariant *IssueVariantInput) entity.IssueVariant

func NewScannerRunEntity

func NewScannerRunEntity(sr *ScannerRunInput) entity.ScannerRun

func NewServiceEntity

func NewServiceEntity(service *ServiceInput) entity.Service

func NewSeverityEntity

func NewSeverityEntity(severity *SeverityInput) entity.Severity

func NewSupportGroupEntity

func NewSupportGroupEntity(supportGroup *SupportGroupInput) entity.SupportGroup

func NewUserEntity

func NewUserEntity(user *UserInput) entity.User

Types

type Ccrn

type Ccrn struct {
	Region    string
	Cluster   string
	Namespace string
	Domain    string
	Project   string
}

func ParseCcrn

func ParseCcrn(rawCcrn string) Ccrn

type HasToEntity

type HasToEntity interface {
	ToOrderEntity() entity.Order
}

type NodeName

type NodeName string
const (
	ActivityNodeName          NodeName = "Activity"
	IssueVariantNodeName      NodeName = "IssueVariant"
	IssueRepositoryNodeName   NodeName = "IssueRepository"
	ComponentNodeName         NodeName = "Component"
	ComponentInstanceNodeName NodeName = "ComponentInstance"
	ComponentVersionNodeName  NodeName = "ComponentVersion"
	EvidenceNodeName          NodeName = "Evidence"
	ServiceNodeName           NodeName = "Service"
	SupportGroupNodeName      NodeName = "SupportGroup"
	UserNodeName              NodeName = "User"
	IssueNodeName             NodeName = "Issue"
	IssueMatchNodeName        NodeName = "IssueMatch"
	IssueMatchChangeNodeName  NodeName = "IssueMatchChange"
)

func (NodeName) String

func (e NodeName) String() string

type NodeParent

type NodeParent struct {
	Parent     Node
	ParentName NodeName
	ChildIds   []*int64
}

Jump to

Keyboard shortcuts

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