Documentation ¶
Index ¶
- type IRepoRepository
- type IWorkspaceRepository
- type Mock
- func (m *Mock) GetDashboardTotalDevelopers(_ *dashboard.Filter) (int, error)
- func (m *Mock) GetDashboardTotalRepositories(_ *dashboard.Filter) (int, error)
- func (m *Mock) GetDashboardVulnByAuthor(_ *dashboard.Filter) ([]*dashboard.VulnerabilitiesByAuthor, error)
- func (m *Mock) GetDashboardVulnByLanguage(_ *dashboard.Filter) ([]*dashboard.VulnerabilitiesByLanguage, error)
- func (m *Mock) GetDashboardVulnByRepository(_ *dashboard.Filter) ([]*dashboard.VulnerabilitiesByRepository, error)
- func (m *Mock) GetDashboardVulnBySeverity(_ *dashboard.Filter) (*dashboard.Vulnerability, error)
- func (m *Mock) GetDashboardVulnByTime(_ *dashboard.Filter) ([]*dashboard.VulnerabilitiesByTime, error)
- type RepoRepository
- func (r *RepoRepository) GetDashboardTotalDevelopers(filter *dashboard.Filter) (count int, err error)
- func (r *RepoRepository) GetDashboardVulnByAuthor(filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByAuthor, err error)
- func (r *RepoRepository) GetDashboardVulnByLanguage(filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByLanguage, err error)
- func (r *RepoRepository) GetDashboardVulnBySeverity(filter *dashboard.Filter) (*dashboard.Vulnerability, error)
- func (r *RepoRepository) GetDashboardVulnByTime(filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByTime, err error)
- type WorkspaceRepository
- func (r *WorkspaceRepository) GetDashboardTotalDevelopers(filter *dashboard.Filter) (count int, err error)
- func (r *WorkspaceRepository) GetDashboardTotalRepositories(filter *dashboard.Filter) (count int, err error)
- func (r *WorkspaceRepository) GetDashboardVulnByAuthor(filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByAuthor, err error)
- func (r *WorkspaceRepository) GetDashboardVulnByLanguage(filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByLanguage, err error)
- func (r *WorkspaceRepository) GetDashboardVulnByRepository(filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByRepository, err error)
- func (r *WorkspaceRepository) GetDashboardVulnBySeverity(filter *dashboard.Filter) (*dashboard.Vulnerability, error)
- func (r *WorkspaceRepository) GetDashboardVulnByTime(filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByTime, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IRepoRepository ¶
type IRepoRepository interface { GetDashboardTotalDevelopers(filter *dashboard.Filter) (int, error) GetDashboardVulnBySeverity(filter *dashboard.Filter) (*dashboard.Vulnerability, error) GetDashboardVulnByAuthor(filter *dashboard.Filter) ([]*dashboard.VulnerabilitiesByAuthor, error) GetDashboardVulnByLanguage(filter *dashboard.Filter) ([]*dashboard.VulnerabilitiesByLanguage, error) GetDashboardVulnByTime(filter *dashboard.Filter) ([]*dashboard.VulnerabilitiesByTime, error) }
func NewRepoDashboard ¶
func NewRepoDashboard(connection *database.Connection) IRepoRepository
type IWorkspaceRepository ¶
type IWorkspaceRepository interface { GetDashboardTotalDevelopers(filter *dashboard.Filter) (int, error) GetDashboardTotalRepositories(filter *dashboard.Filter) (int, error) GetDashboardVulnBySeverity(filter *dashboard.Filter) (*dashboard.Vulnerability, error) GetDashboardVulnByAuthor(filter *dashboard.Filter) ([]*dashboard.VulnerabilitiesByAuthor, error) GetDashboardVulnByRepository(filter *dashboard.Filter) ([]*dashboard.VulnerabilitiesByRepository, error) GetDashboardVulnByLanguage(filter *dashboard.Filter) ([]*dashboard.VulnerabilitiesByLanguage, error) GetDashboardVulnByTime(filter *dashboard.Filter) ([]*dashboard.VulnerabilitiesByTime, error) }
func NewWorkspaceDashboard ¶
func NewWorkspaceDashboard(connection *database.Connection) IWorkspaceRepository
type Mock ¶
func (*Mock) GetDashboardTotalDevelopers ¶
func (*Mock) GetDashboardTotalRepositories ¶
func (*Mock) GetDashboardVulnByAuthor ¶
func (*Mock) GetDashboardVulnByLanguage ¶
func (*Mock) GetDashboardVulnByRepository ¶
func (*Mock) GetDashboardVulnBySeverity ¶
func (*Mock) GetDashboardVulnByTime ¶
type RepoRepository ¶
type RepoRepository struct {
// contains filtered or unexported fields
}
func (*RepoRepository) GetDashboardTotalDevelopers ¶
func (r *RepoRepository) GetDashboardTotalDevelopers(filter *dashboard.Filter) (count int, err error)
func (*RepoRepository) GetDashboardVulnByAuthor ¶
func (r *RepoRepository) GetDashboardVulnByAuthor( filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByAuthor, err error)
func (*RepoRepository) GetDashboardVulnByLanguage ¶
func (r *RepoRepository) GetDashboardVulnByLanguage( filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByLanguage, err error)
func (*RepoRepository) GetDashboardVulnBySeverity ¶
func (r *RepoRepository) GetDashboardVulnBySeverity(filter *dashboard.Filter) (*dashboard.Vulnerability, error)
func (*RepoRepository) GetDashboardVulnByTime ¶
func (r *RepoRepository) GetDashboardVulnByTime( filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByTime, err error)
type WorkspaceRepository ¶
type WorkspaceRepository struct {
// contains filtered or unexported fields
}
func (*WorkspaceRepository) GetDashboardTotalDevelopers ¶
func (r *WorkspaceRepository) GetDashboardTotalDevelopers(filter *dashboard.Filter) (count int, err error)
func (*WorkspaceRepository) GetDashboardTotalRepositories ¶
func (r *WorkspaceRepository) GetDashboardTotalRepositories(filter *dashboard.Filter) (count int, err error)
func (*WorkspaceRepository) GetDashboardVulnByAuthor ¶
func (r *WorkspaceRepository) GetDashboardVulnByAuthor( filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByAuthor, err error)
func (*WorkspaceRepository) GetDashboardVulnByLanguage ¶
func (r *WorkspaceRepository) GetDashboardVulnByLanguage( filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByLanguage, err error)
func (*WorkspaceRepository) GetDashboardVulnByRepository ¶
func (r *WorkspaceRepository) GetDashboardVulnByRepository( filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByRepository, err error)
func (*WorkspaceRepository) GetDashboardVulnBySeverity ¶
func (r *WorkspaceRepository) GetDashboardVulnBySeverity(filter *dashboard.Filter) (*dashboard.Vulnerability, error)
func (*WorkspaceRepository) GetDashboardVulnByTime ¶
func (r *WorkspaceRepository) GetDashboardVulnByTime( filter *dashboard.Filter) (vulns []*dashboard.VulnerabilitiesByTime, err error)
Click to show internal directories.
Click to hide internal directories.