storage

package
v0.0.0-...-870d972 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitStorage

type GitStorage interface {
	GetGitByProjectID(projectID int) (*models.Git, error)
	CreateGit(git *models.Git) error
}

func NewGitStore

func NewGitStore() GitStorage

type ProjectStorage

type ProjectStorage interface {
	Create(project *models.Project) error
	GetByName(name string) (*models.Project, error)
	GetByVersion(version string) ([]models.Project, error)
	GetByID(id uint) (*models.Project, error)
	GetAll() ([]models.Project, error)
	DeleteByID(id uint) error
}

func NewProjectStorage

func NewProjectStorage() ProjectStorage

Jump to

Keyboard shortcuts

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