analysis

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

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 (a *Analysis) GetDataWithoutVulnerabilities() *Analysis

func (*Analysis) GetID

func (a *Analysis) GetID() uuid.UUID

func (*Analysis) GetIDString

func (a *Analysis) GetIDString() string

func (*Analysis) GetTable

func (a *Analysis) GetTable() string

func (*Analysis) GetTotalVulnerabilities

func (a *Analysis) GetTotalVulnerabilities() int

func (*Analysis) HasErrors

func (a *Analysis) HasErrors() bool

func (*Analysis) Map

func (a *Analysis) Map() map[string]interface{}

func (*Analysis) SetAllAnalysisVulnerabilitiesDefaultData

func (a *Analysis) SetAllAnalysisVulnerabilitiesDefaultData()

func (*Analysis) SetError

func (a *Analysis) SetError(err error)

func (*Analysis) SetFindOneFilter

func (a *Analysis) SetFindOneFilter() map[string]interface{}

func (*Analysis) SetFinishedData

func (a *Analysis) SetFinishedData()

func (*Analysis) SetRepositoryID

func (a *Analysis) SetRepositoryID(repositoryID uuid.UUID)

func (*Analysis) SetRepositoryName

func (a *Analysis) SetRepositoryName(repositoryName string)

func (*Analysis) SetWorkspaceName

func (a *Analysis) SetWorkspaceName(workspaceName string)

func (*Analysis) ToBytes

func (a *Analysis) ToBytes() []byte

func (*Analysis) ToString

func (a *Analysis) ToString() string

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()

Jump to

Keyboard shortcuts

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