Documentation ¶
Index ¶
- type LibraryDB
- type ProjectDB
- func (p *ProjectDB) AddProject(project *domain.Project)
- func (p *ProjectDB) GetProjectByID(id string) *domain.Project
- func (p *ProjectDB) GetProjectByIDAndCommit(id, commit string) *domain.Project
- func (p *ProjectDB) GetProjects() ([]*domain.Project, error)
- func (p *ProjectDB) UpdateProject(project *domain.Project, status domain.Status)
- func (p *ProjectDB) UpdateProjectBuildToolAndStatus(project *domain.Project, status domain.Status, buildTool string)
- func (p *ProjectDB) UpdateProjectName(project *domain.Project, name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LibraryDB ¶
type LibraryDB struct {
// contains filtered or unexported fields
}
LibraryDB defines the CRUD operations for storing projects in the db
func NewLibraryDB ¶
func NewLibraryDB(log *utils.StandardLogger, db *gorm.DB) *LibraryDB
NewLibraryDB returns a LibraryDB object for handling CRUD operations
func (*LibraryDB) AddLibrary ¶
AddLibrary adds a library to the db
type ProjectDB ¶
type ProjectDB struct {
// contains filtered or unexported fields
}
ProjectDB defines the CRUD operations for storing projects in the db
func NewProjectDB ¶
func NewProjectDB(log *utils.StandardLogger, db *gorm.DB) *ProjectDB
NewProjectDB returns a ProjectDB object for handling CRUD operations
func (*ProjectDB) AddProject ¶
AddProject adds a project to the db
func (*ProjectDB) GetProjectByID ¶
GetProjectByID returns the project with the given id
func (*ProjectDB) GetProjectByIDAndCommit ¶
GetProjectByIDAndCommit returns the project with the given id and commit
func (*ProjectDB) GetProjects ¶
GetProjects returns all existing projects in the db
func (*ProjectDB) UpdateProject ¶
UpdateProject updates the analysis status of the project
Click to show internal directories.
Click to hide internal directories.