project

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchMembersOfProject added in v0.17.2

func FetchMembersOfProject(ctx core.Context) ([]core.User, error)

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

Jump to

Keyboard shortcuts

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