repository

package
v1.0.3-mcd Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 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 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

func (l *LibraryDB) AddLibrary(library *domain.Library)

AddLibrary adds a library to the db

func (*LibraryDB) GetLibraryByIDAndCommit

func (l *LibraryDB) GetLibraryByIDAndCommit(id, commit string) []*domain.Library

GetLibraryByIDAndCommit returns all libraries for the given id and commit

Jump to

Keyboard shortcuts

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