Documentation
¶
Index ¶
- func FetchMembersOfProject(ctx core.Context) ([]core.User, error)
- func NewHTTPController(repository core.ProjectRepository, assetRepository core.AssetRepository, ...) *controller
- func NewService(projectRepository core.ProjectRepository, assetRepository core.AssetRepository) *service
- type CreateRequest
- type ProjectDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchMembersOfProject ¶ added in v0.17.2
func NewHTTPController ¶ added in v0.17.2
func NewHTTPController(repository core.ProjectRepository, assetRepository core.AssetRepository, projectService core.ProjectService, webhookRepository core.WebhookIntegrationRepository) *controller
func NewService ¶ added in v0.5.14
func NewService(projectRepository core.ProjectRepository, assetRepository core.AssetRepository) *service
Types ¶
type CreateRequest ¶
type CreateRequest struct { Name string `json:"name" validate:"required"` Description string `json:"description"` ParentID *uuid.UUID `json:"parentId"` // if created as a child project Type models.ProjectType `json:"type"` }
func (*CreateRequest) ToModel ¶
func (projectCreate *CreateRequest) ToModel() models.Project
type ProjectDTO ¶ added in v0.17.2
type ProjectDTO struct { Avatar *string `json:"avatar,omitempty"` // URL to the project's avatar ID uuid.UUID `json:"id"` Name string `json:"name"` Slug string `json:"slug"` Description string `json:"description"` IsPublic bool `json:"isPublic"` Type string `json:"type"` ParentID *uuid.UUID `json:"parentId"` Parent *ProjectDTO `json:"parent,omitempty"` // recursive structure RepositoryID *string `json:"repositoryId"` RepositoryName *string `json:"repositoryName"` Assets []models.Asset `json:"assets"` ConfigFiles map[string]any `json:"configFiles"` ExternalEntityProviderID *string `json:"externalEntityProviderId,omitempty"` ExternalEntityID *string `json:"externalEntityId,omitempty"` // only set if this is an external entity }
func FromModel ¶ added in v0.17.2
func FromModel(project models.Project) ProjectDTO
Click to show internal directories.
Click to hide internal directories.