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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func (*Controller) AddVulnerabilitiesByAuthor

func (c *Controller) AddVulnerabilitiesByAuthor(entity *analysis.Analysis) error

func (*Controller) AddVulnerabilitiesByLanguage

func (c *Controller) AddVulnerabilitiesByLanguage(entity *analysis.Analysis) error

func (*Controller) AddVulnerabilitiesByRepository

func (c *Controller) AddVulnerabilitiesByRepository(entity *analysis.Analysis) error

func (*Controller) AddVulnerabilitiesByTime

func (c *Controller) AddVulnerabilitiesByTime(entity *analysis.Analysis) error

func (*Controller) GetAllDashboardChartsRepository

func (c *Controller) GetAllDashboardChartsRepository(filter *dashboard.Filter) (*dashboard.Response, error)

func (*Controller) GetAllDashboardChartsWorkspace

func (c *Controller) GetAllDashboardChartsWorkspace(filter *dashboard.Filter) (*dashboard.Response, error)

type IController

type IController interface {
	GetAllDashboardChartsWorkspace(filter *dashboard.Filter) (*dashboard.Response, error)
	GetAllDashboardChartsRepository(filter *dashboard.Filter) (*dashboard.Response, error)
	AddVulnerabilitiesByAuthor(entity *analysis.Analysis) error
	AddVulnerabilitiesByRepository(entity *analysis.Analysis) error
	AddVulnerabilitiesByLanguage(entity *analysis.Analysis) error
	AddVulnerabilitiesByTime(entity *analysis.Analysis) error
}

func NewDashboardController

func NewDashboardController(repoRepository repositoriesdashboard.IRepoRepository,
	workspaceRepository repositoriesdashboard.IWorkspaceRepository, connection *database.Connection,
	useCases usecasesdashboard.IUseCases) IController

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) AddVulnerabilitiesByAuthor

func (m *Mock) AddVulnerabilitiesByAuthor(_ *analysisEntities.Analysis) error

func (*Mock) AddVulnerabilitiesByLanguage

func (m *Mock) AddVulnerabilitiesByLanguage(_ *analysisEntities.Analysis) error

func (*Mock) AddVulnerabilitiesByRepository

func (m *Mock) AddVulnerabilitiesByRepository(_ *analysisEntities.Analysis) error

func (*Mock) AddVulnerabilitiesByTime

func (m *Mock) AddVulnerabilitiesByTime(_ *analysisEntities.Analysis) error

func (*Mock) GetAllDashboardChartsRepository

func (m *Mock) GetAllDashboardChartsRepository(_ *dashboard.Filter) (*dashboard.Response, error)

func (*Mock) GetAllDashboardChartsWorkspace

func (m *Mock) GetAllDashboardChartsWorkspace(_ *dashboard.Filter) (*dashboard.Response, error)

Jump to

Keyboard shortcuts

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