project

package
v0.12.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGettingNonExistingProject  = errors.New("the project does not exist")
	ErrUpdatingNonExistingProject = errors.New("the project to update does not exist")
	ErrSourceNotFound             = errors.New("the specified source does not exist")
	ErrOrgNotFound                = errors.New("the specified org does not exist")
	ErrInvalidProjectID           = errors.New("the project ID should be a uuid")
)

Functions

This section is empty.

Types

type ProjectManager

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

func NewProjectManager

func NewProjectManager(projectRepo repository.ProjectRepository, organizationRepo repository.OrganizationRepository, sourceRepo repository.SourceRepository) *ProjectManager

func (*ProjectManager) CreateProject

func (m *ProjectManager) CreateProject(ctx context.Context, requestPayload request.CreateProjectRequest) (*entity.Project, error)

func (*ProjectManager) DeleteProjectByID

func (m *ProjectManager) DeleteProjectByID(ctx context.Context, id uint) error

func (*ProjectManager) GetProjectByID

func (m *ProjectManager) GetProjectByID(ctx context.Context, id uint) (*entity.Project, error)

func (*ProjectManager) ListProjects

func (m *ProjectManager) ListProjects(ctx context.Context) ([]*entity.Project, error)

func (*ProjectManager) UpdateProjectByID

func (m *ProjectManager) UpdateProjectByID(ctx context.Context, id uint, requestPayload request.UpdateProjectRequest) (*entity.Project, error)

Jump to

Keyboard shortcuts

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