Documentation ¶
Index ¶
- type Analysis
- func (a *Analysis) GetDataWithoutVulnerabilities() *Analysis
- func (a *Analysis) GetID() uuid.UUID
- func (a *Analysis) GetIDString() string
- func (a *Analysis) GetTable() string
- func (a *Analysis) GetTotalVulnerabilities() int
- func (a *Analysis) HasErrors() bool
- func (a *Analysis) Map() map[string]interface{}
- func (a *Analysis) SetAllAnalysisVulnerabilitiesDefaultData()
- func (a *Analysis) SetError(err error)
- func (a *Analysis) SetFindOneFilter() map[string]interface{}
- func (a *Analysis) SetFinishedData()
- func (a *Analysis) SetRepositoryID(repositoryID uuid.UUID)
- func (a *Analysis) SetRepositoryName(repositoryName string)
- func (a *Analysis) SetWorkspaceName(workspaceName string)
- func (a *Analysis) ToBytes() []byte
- func (a *Analysis) ToString() string
- type AnalysisVulnerabilities
- func (a *AnalysisVulnerabilities) GetAnalysisVulnerabilitiesWithoutVulnerability() *AnalysisVulnerabilities
- func (a *AnalysisVulnerabilities) GetTable() string
- func (a *AnalysisVulnerabilities) SetAnalysisID(id uuid.UUID)
- func (a *AnalysisVulnerabilities) SetCreatedAt()
- func (a *AnalysisVulnerabilities) SetVulnerabilityID()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analysis ¶
type Analysis struct { ID uuid.UUID `json:"id" gorm:"Column:analysis_id" example:"00000000-0000-0000-0000-000000000000"` RepositoryID uuid.UUID `json:"repositoryID" gorm:"Column:repository_id" example:"00000000-0000-0000-0000-000000000000"` RepositoryName string `json:"repositoryName" gorm:"Column:repository_name" example:"my-project"` WorkspaceID uuid.UUID `json:"workspaceID" gorm:"Column:workspace_id" example:"00000000-0000-0000-0000-000000000000"` WorkspaceName string `json:"workspaceName" gorm:"Column:workspace_name" example:"my-workspace"` Status analysis.Status `json:"status" gorm:"Column:status" enums:"running,success,error" example:"success"` Errors string `json:"errors" gorm:"Column:errors"` CreatedAt time.Time `json:"createdAt" gorm:"Column:created_at" example:"2021-12-30T23:59:59Z"` FinishedAt time.Time `json:"finishedAt" gorm:"Column:finished_at" example:"2021-12-30T23:59:59Z"` AnalysisVulnerabilities []AnalysisVulnerabilities `json:"analysisVulnerabilities" gorm:"foreignKey:AnalysisID;references:ID"` }
func (*Analysis) GetDataWithoutVulnerabilities ¶
func (*Analysis) GetIDString ¶
func (*Analysis) GetTotalVulnerabilities ¶
func (*Analysis) SetAllAnalysisVulnerabilitiesDefaultData ¶
func (a *Analysis) SetAllAnalysisVulnerabilitiesDefaultData()
func (*Analysis) SetFindOneFilter ¶
func (*Analysis) SetFinishedData ¶
func (a *Analysis) SetFinishedData()
func (*Analysis) SetRepositoryID ¶
func (*Analysis) SetRepositoryName ¶
func (*Analysis) SetWorkspaceName ¶
type AnalysisVulnerabilities ¶
type AnalysisVulnerabilities struct { VulnerabilityID uuid.UUID `json:"vulnerabilityID" gorm:"Column:vulnerability_id" example:"00000000-0000-0000-0000-000000000000"` AnalysisID uuid.UUID `json:"analysisID" gorm:"Column:analysis_id" example:"00000000-0000-0000-0000-000000000000"` CreatedAt time.Time `json:"createdAt" gorm:"Column:created_at" example:"2021-12-30T23:59:59Z"` Vulnerability vulnerability.Vulnerability `json:"vulnerabilities" gorm:"foreignKey:VulnerabilityID;references:VulnerabilityID"` }
func (*AnalysisVulnerabilities) GetAnalysisVulnerabilitiesWithoutVulnerability ¶
func (a *AnalysisVulnerabilities) GetAnalysisVulnerabilitiesWithoutVulnerability() *AnalysisVulnerabilities
func (*AnalysisVulnerabilities) GetTable ¶
func (a *AnalysisVulnerabilities) GetTable() string
func (*AnalysisVulnerabilities) SetAnalysisID ¶
func (a *AnalysisVulnerabilities) SetAnalysisID(id uuid.UUID)
func (*AnalysisVulnerabilities) SetCreatedAt ¶
func (a *AnalysisVulnerabilities) SetCreatedAt()
func (*AnalysisVulnerabilities) SetVulnerabilityID ¶
func (a *AnalysisVulnerabilities) SetVulnerabilityID()
Click to show internal directories.
Click to hide internal directories.