project_service

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 16 Imported by: 0

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