dashboard

package
v0.0.0-...-46e61fc Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

type Mock struct {
	mock.Mock
}

func (*Mock) GetDashboardTotalDevelopers

func (m *Mock) GetDashboardTotalDevelopers(_ *dashboard.Filter) (int, error)

func (*Mock) GetDashboardTotalRepositories

func (m *Mock) GetDashboardTotalRepositories(_ *dashboard.Filter) (int, error)

func (*Mock) GetDashboardVulnByAuthor

func (m *Mock) GetDashboardVulnByAuthor(_ *dashboard.Filter) ([]*dashboard.VulnerabilitiesByAuthor, error)

func (*Mock) GetDashboardVulnByLanguage

func (m *Mock) GetDashboardVulnByLanguage(_ *dashboard.Filter) ([]*dashboard.VulnerabilitiesByLanguage, error)

func (*Mock) GetDashboardVulnByRepository

func (m *Mock) GetDashboardVulnByRepository(_ *dashboard.Filter) ([]*dashboard.VulnerabilitiesByRepository, error)

func (*Mock) GetDashboardVulnBySeverity

func (m *Mock) GetDashboardVulnBySeverity(_ *dashboard.Filter) (*dashboard.Vulnerability, error)

func (*Mock) GetDashboardVulnByTime

func (m *Mock) GetDashboardVulnByTime(_ *dashboard.Filter) ([]*dashboard.VulnerabilitiesByTime, error)

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)

Jump to

Keyboard shortcuts

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