Documentation ¶
Overview ¶
Package project implements functionality related to Phobos projects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateProjectInput ¶
CreateProjectInput is the input for creating a project
type DeleteProjectInput ¶
DeleteProjectInput is the input for deleting a project
type GetProjectsInput ¶
type GetProjectsInput struct { // Sort specifies the field to sort on and direction Sort *db.ProjectSortableField // PaginationOptions supports cursor based pagination PaginationOptions *pagination.Options // Organization filters the projects by the specified organization Organization *models.Organization // Search is used to search for a project by name Search *string }
GetProjectsInput is the input for querying a list of projects
type Service ¶
type Service interface { GetProjectByID(ctx context.Context, id string) (*models.Project, error) GetProjectsByIDs(ctx context.Context, idList []string) ([]models.Project, error) GetProjectByPRN(ctx context.Context, prn string) (*models.Project, error) GetProjects(ctx context.Context, input *GetProjectsInput) (*db.ProjectsResult, error) CreateProject(ctx context.Context, input *CreateProjectInput) (*models.Project, error) UpdateProject(ctx context.Context, input *UpdateProjectInput) (*models.Project, error) DeleteProject(ctx context.Context, input *DeleteProjectInput) error }
Service implements all project related functionality
func NewService ¶
func NewService( logger logger.Logger, dbClient *db.Client, activeService activityevent.Service, ) Service
NewService returns an instance of Service
type UpdateProjectInput ¶
UpdateProjectInput is the input for updating a project For now, a project cannot move between orgs or into or out of an org.
Click to show internal directories.
Click to hide internal directories.