Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpController ¶
func NewHttpController(flawRepository repository, flawService flawService) *flawHttpController
func NewService ¶
func NewService(flawRepository flawRepository, flawEventRepository flawEventRepository, assetRepository assetRepository, cveRepository cveRepository) *service
Types ¶
type FlawDTO ¶
type FlawDTO struct {
ID string `json:"id"`
ScannerID string `json:"scanner"`
Message *string `json:"message"`
AssetID string `json:"assetId"`
State models.FlawState `json:"state"`
CVE *models.CVE `json:"cve"`
CVEID string `json:"cveId"`
Component *models.Component `json:"component"`
ComponentPurl string `json:"componentPurl"`
Effort *int `json:"effort"`
RiskAssessment *int `json:"riskAssessment"`
RawRiskAssessment *float64 `json:"rawRiskAssessment"`
Priority *int `json:"priority"`
ArbitraryJsonData map[string]any `json:"arbitraryJsonData"`
LastDetected time.Time `json:"lastDetected"`
CreatedAt time.Time `json:"createdAt"`
TicketID *string `json:"ticketId"`
TicketURL *string `json:"ticketUrl"`
}
type FlawEventDTO ¶
type FlawEventDTO struct {
ID uuid.UUID `json:"id"`
Type models.FlawEventType `json:"type"`
FlawID string `json:"flawId"`
UserID string `json:"userId"`
Justification *string `json:"justification"`
ArbitraryJsonData map[string]any `json:"arbitraryJsonData"`
CreatedAt time.Time `json:"createdAt"`
}
func (FlawEventDTO) ToModel ¶
func (dto FlawEventDTO) ToModel() models.FlawEvent
type FlawEventHttpController ¶
type FlawEventHttpController struct {
// contains filtered or unexported fields
}
func NewEventHttpController ¶
func NewEventHttpController(flawEventRepository ctrFlawEventRepository) *FlawEventHttpController
type FlawStatus ¶
Click to show internal directories.
Click to hide internal directories.