Documentation ¶
Index ¶
- Constants
- type BaseReport
- type FileInfo
- type LiveReport
- func (r *LiveReport) GetCreatedAt() time.Time
- func (r *LiveReport) GetDateFrom() string
- func (r *LiveReport) GetDateTo() string
- func (r *LiveReport) GetDeliveredTo() []string
- func (r *LiveReport) GetFiles() []FileInfo
- func (r *LiveReport) GetID() string
- func (r *LiveReport) GetNotification() Notification
- func (r *LiveReport) GetStatus() string
- func (r *LiveReport) GetTeamID() string
- func (r *LiveReport) GetUpdatedAt() time.Time
- type NotifFmt
- type Notification
- type Report
- type ReportType
- type ScanReport
- func (r *ScanReport) GetCreatedAt() time.Time
- func (r *ScanReport) GetDeliveredTo() []string
- func (r *ScanReport) GetFiles() []FileInfo
- func (r *ScanReport) GetID() string
- func (r *ScanReport) GetNotification() Notification
- func (r *ScanReport) GetStatus() string
- func (r *ScanReport) GetUpdatedAt() time.Time
Constants ¶
View Source
const ( // NotifFmtHTML indicates notification has HTML format. NotifFmtHTML = iota // NotifFmtText indicates notification has Text format. NotifFmtText // ScanType identifies the scan report type. ScanType = "scan" // LiveReportType identifies the live report type. LiveReportType = "livereport" // StatusGenerating indicates that report is being generated. StatusGenerating = "GENERATING" // StatusFinished indicates that report has been generated. StatusFinished = "FINISHED" // StatusFailed indicates that report generation failed. StatusFailed = "FAILED" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseReport ¶
type BaseReport struct { ID string Files []FileInfo Notification Notification DeliveredTo []string Status string CreatedAt time.Time UpdatedAt time.Time }
BaseReport represents the common fields for all types of reports.
type LiveReport ¶
type LiveReport struct { BaseReport TeamID string DateFrom string DateTo string }
LiveReport represents a report for vulcan team.
func (*LiveReport) GetCreatedAt ¶
func (r *LiveReport) GetCreatedAt() time.Time
func (*LiveReport) GetDateFrom ¶
func (r *LiveReport) GetDateFrom() string
func (*LiveReport) GetDateTo ¶
func (r *LiveReport) GetDateTo() string
func (*LiveReport) GetDeliveredTo ¶
func (r *LiveReport) GetDeliveredTo() []string
func (*LiveReport) GetFiles ¶
func (r *LiveReport) GetFiles() []FileInfo
func (*LiveReport) GetID ¶
func (r *LiveReport) GetID() string
func (*LiveReport) GetNotification ¶
func (r *LiveReport) GetNotification() Notification
func (*LiveReport) GetStatus ¶
func (r *LiveReport) GetStatus() string
func (*LiveReport) GetTeamID ¶
func (r *LiveReport) GetTeamID() string
func (*LiveReport) GetUpdatedAt ¶
func (r *LiveReport) GetUpdatedAt() time.Time
type Notification ¶
Notification represents a report notification.
type Report ¶
type Report interface { GetID() string GetFiles() []FileInfo GetNotification() Notification GetDeliveredTo() []string GetStatus() string GetCreatedAt() time.Time GetUpdatedAt() time.Time }
Report represents the interface which all report types must comply with.
type ScanReport ¶
type ScanReport struct { BaseReport ScanID string ReportURL string ReportJSONURL string ProgramName string Risk int UpdateStatusAt time.Time }
ScanReport represents a report for a vulcan scan.
func (*ScanReport) GetCreatedAt ¶
func (r *ScanReport) GetCreatedAt() time.Time
func (*ScanReport) GetDeliveredTo ¶
func (r *ScanReport) GetDeliveredTo() []string
func (*ScanReport) GetFiles ¶
func (r *ScanReport) GetFiles() []FileInfo
func (*ScanReport) GetID ¶
func (r *ScanReport) GetID() string
func (*ScanReport) GetNotification ¶
func (r *ScanReport) GetNotification() Notification
func (*ScanReport) GetStatus ¶
func (r *ScanReport) GetStatus() string
func (*ScanReport) GetUpdatedAt ¶
func (r *ScanReport) GetUpdatedAt() time.Time
Click to show internal directories.
Click to hide internal directories.