release

package
v0.18.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReleaseController

func NewReleaseController(s *service, avService core.AssetVersionService, avRepo core.AssetVersionRepository, compRepo core.ComponentRepository, licRepo core.LicenseRiskRepository, dvRepo core.DependencyVulnRepository, assetRepository core.AssetRepository) *releaseController

func NewService

func NewService(releaseRepository core.ReleaseRepository) *service

Types

type ArtifactDTO

type ArtifactDTO struct {
	ArtifactName     string    `json:"artifactName"`
	AssetVersionName string    `json:"assetVersionName"`
	AssetID          uuid.UUID `json:"assetId"`
}

ArtifactDTO is a trimmed artifact view returned to clients. It includes the asset's name.

type CandidatesResponseDTO

type CandidatesResponseDTO struct {
	Artifacts []ArtifactDTO `json:"artifacts"`
	Releases  []ReleaseDTO  `json:"releases"`
}

type ReleaseDTO

type ReleaseDTO struct {
	ID        uuid.UUID        `gorm:"primarykey;type:uuid;default:gen_random_uuid()" json:"id"`
	CreatedAt time.Time        `json:"createdAt"`
	UpdatedAt time.Time        `json:"updatedAt"`
	Name      string           `json:"name"`
	ProjectID uuid.UUID        `json:"projectId"`
	Items     []ReleaseItemDTO `json:"items,omitempty"`
}

type ReleaseItemDTO

type ReleaseItemDTO struct {
	ID               uuid.UUID  `json:"id,omitempty"`
	ReleaseID        uuid.UUID  `json:"releaseId,omitempty"`
	ChildReleaseName *string    `json:"childReleaseName,omitempty"`
	ChildReleaseID   *uuid.UUID `json:"childReleaseId,omitempty"`
	ArtifactName     *string    `json:"artifactName,omitempty"`
	AssetVersionName *string    `json:"assetVersionName,omitempty"`
	AssetID          *uuid.UUID `json:"assetId,omitempty"`
}

Jump to

Keyboard shortcuts

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