project_service

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProjectInput

type CreateProjectInput struct {
	TeamID      uuid.UUID `json:"team_id" format:"uuid" required:"true"`
	Name        string    `json:"name" required:"true"`
	Description *string   `json:"description" required:"false"`
}

type DeleteProjectInput

type DeleteProjectInput struct {
	TeamID    uuid.UUID `format:"uuid" required:"true"`
	ProjectID uuid.UUID `format:"uuid" required:"true"`
}

type ProjectService

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

Integrate project management with internal permissions and kubernetes RBAC

func (*ProjectService) CreateProject

func (self *ProjectService) CreateProject(ctx context.Context, requesterUserID uuid.UUID, input *CreateProjectInput, bearerToken string) (*models.ProjectResponse, error)

func (*ProjectService) DeleteProject

func (self *ProjectService) DeleteProject(ctx context.Context, requesterUserID uuid.UUID, input *DeleteProjectInput, bearerToken string) error

func (*ProjectService) GetProjectByID

func (self *ProjectService) GetProjectByID(ctx context.Context, requesterUserID uuid.UUID, teamID uuid.UUID, projectID uuid.UUID) (*models.ProjectResponse, error)

Get a single project by ID

func (*ProjectService) GetProjectsInTeam

func (self *ProjectService) GetProjectsInTeam(ctx context.Context, requesterUserID uuid.UUID, teamID uuid.UUID, sortBy models.SortByField, sortOrder models.SortOrder) ([]*models.ProjectResponse, error)

func (*ProjectService) UpdateProject

func (self *ProjectService) UpdateProject(ctx context.Context, requesterUserID uuid.UUID, input *models.UpdateProjectInput) (*models.ProjectResponse, error)

Jump to

Keyboard shortcuts

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