repository

package
v1.0.11-lua Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileDB

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

FileDB defines the CRUD operations for storing projects in the db

func NewFileDB

func NewFileDB(log *util.StandardLogger, db *gorm.DB) *FileDB

NewFileDB returns a FileDB object for handling CRUD operations

func (*FileDB) AddFile

func (l *FileDB) AddFile(file *domain.File)

AddFile adds a library to the db

func (*FileDB) GetAffectedProjectFiles

func (l *FileDB) GetAffectedProjectFiles(projectID, commit, libraryName string) []string

func (*FileDB) GetFilesByIDAndCommit

func (l *FileDB) GetFilesByIDAndCommit(id, commit string) []*domain.File

GetFilesByIDAndCommit returns all files for the given id and commit

Jump to

Keyboard shortcuts

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