dashboard

package
v1.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: Apache-2.0 Imports: 11 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) GetTotalDevelopers

func (c *Controller) GetTotalDevelopers(companyID, repositoryID uuid.UUID, initialDate,
	finalDate time.Time) (int, error)

func (*Controller) GetTotalRepositories

func (c *Controller) GetTotalRepositories(companyID, repositoryID uuid.UUID, initialDate,
	finalDate time.Time) (int, error)

func (*Controller) GetVulnByDeveloper

func (c *Controller) GetVulnByDeveloper(companyID, repositoryID uuid.UUID,
	initialDate, finalDate time.Time) ([]dashboardEntities.VulnByDeveloper, error)

func (*Controller) GetVulnByLanguage

func (c *Controller) GetVulnByLanguage(companyID, repositoryID uuid.UUID,
	initialDate, finalDate time.Time) ([]dashboardEntities.VulnByLanguage, error)

func (*Controller) GetVulnByRepository

func (c *Controller) GetVulnByRepository(companyID, repositoryID uuid.UUID,
	initialDate, finalDate time.Time) ([]dashboardEntities.VulnByRepository, error)

func (*Controller) GetVulnBySeverity

func (c *Controller) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate,
	finalDate time.Time) ([]dashboardEntities.VulnBySeverity, error)

func (*Controller) GetVulnByTime

func (c *Controller) GetVulnByTime(companyID, repositoryID uuid.UUID,
	initialDate, finalDate time.Time) ([]dashboardEntities.VulnByTime, error)

func (*Controller) GetVulnerabilitiesByAuthor

func (c *Controller) GetVulnerabilitiesByAuthor(query string, page, size int) (*graphql.Result, error)

type IController

type IController interface {
	GetVulnerabilitiesByAuthor(query string, page, size int) (*graphql.Result, error)
	GetTotalDevelopers(companyID, repositoryID uuid.UUID, initialDate,
		finalDate time.Time) (int, error)
	GetTotalRepositories(companyID, repositoryID uuid.UUID, initialDate,
		finalDate time.Time) (int, error)
	GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate,
		finalDate time.Time) ([]dashboardEntities.VulnBySeverity, error)
	GetVulnByDeveloper(companyID, repositoryID uuid.UUID,
		initialDate, finalDate time.Time) ([]dashboardEntities.VulnByDeveloper, error)
	GetVulnByLanguage(companyID, repositoryID uuid.UUID,
		initialDate, finalDate time.Time) ([]dashboardEntities.VulnByLanguage, error)
	GetVulnByTime(companyID, repositoryID uuid.UUID,
		initialDate, finalDate time.Time) ([]dashboardEntities.VulnByTime, error)
	GetVulnByRepository(companyID, repositoryID uuid.UUID,
		initialDate, finalDate time.Time) ([]dashboardEntities.VulnByRepository, error)
}

func NewDashboardController

func NewDashboardController(postgresRead relational.InterfaceRead) IController

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) GetTotalDevelopers

func (m *Mock) GetTotalDevelopers(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (int, error)

func (*Mock) GetTotalRepositories

func (m *Mock) GetTotalRepositories(companyID, repositoryID uuid.UUID, initialDate, finalDate time.Time) (int, error)

func (*Mock) GetVulnByDeveloper

func (m *Mock) GetVulnByDeveloper(companyID, repositoryID uuid.UUID,
	initialDate, finalDate time.Time) ([]dashboardEntities.VulnByDeveloper, error)

func (*Mock) GetVulnByLanguage

func (m *Mock) GetVulnByLanguage(companyID, repositoryID uuid.UUID,
	initialDate, finalDate time.Time) ([]dashboardEntities.VulnByLanguage, error)

func (*Mock) GetVulnByRepository

func (m *Mock) GetVulnByRepository(companyID, repositoryID uuid.UUID,
	initialDate, finalDate time.Time) ([]dashboardEntities.VulnByRepository, error)

func (*Mock) GetVulnBySeverity

func (m *Mock) GetVulnBySeverity(companyID, repositoryID uuid.UUID, initialDate,
	finalDate time.Time) ([]dashboardEntities.VulnBySeverity, error)

func (*Mock) GetVulnByTime

func (m *Mock) GetVulnByTime(companyID, repositoryID uuid.UUID,
	initialDate, finalDate time.Time) ([]dashboardEntities.VulnByTime, error)

func (*Mock) GetVulnerabilitiesByAuthor

func (m *Mock) GetVulnerabilitiesByAuthor(query string, page, size int) (*graphql.Result, error)

Jump to

Keyboard shortcuts

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