Versions in this module Expand all Collapse all v0 v0.0.8 Sep 14, 2025 Changes in this version + const APP_NAME + const ARCH_AMD64 + const ARCH_ARM64 + const ARCH_X86 + const RESOURCE_PREFIX + type ARCH string + type Artifact struct + Assets []Asset + CreateAt time.Time + Id string + func NewArtifact(req ArtifactSpec) *Artifact + func (a *Artifact) AddAsset(assets ...Asset) + func (a *Artifact) GetFirstByLabel(key, value string) *Asset + func (a *Artifact) String() string + func (a Artifact) TableName() string + type ArtifactSpec struct + Branch string + Commit string + ServiceId string + Version string + type Asset struct + RefArtifactId string + func NewAsset(refArtifactId string, req AssetSpec) *Asset + func (Asset) TableName() string + func (a *Asset) String() string + func (a Asset) GetLabel(key string) string + type AssetSpec struct + Arch ARCH + Extras map[string]string + Format FORMAT + Id string + Lables map[string]string + URL string + UploadAt time.Time + UploadBy string + func (a *AssetSpec) SetLabel(k, v string) *AssetSpec + type DescribeArtifactRequest struct + Id string + func NewDescribeArtifactRequest(artifactId string) *DescribeArtifactRequest + type FORMAT string + const FORMAT_DOCKER_IMAGE + const FORMAT_HELM_CHAT + const FORMAT_JAR + const FORMAT_ZIP_FILE + type QueryArtifactRequest struct + Branch string + Commit string + Label map[string]string + ServiceId string + WithAssets bool + func NewQueryArtifactRequest() *QueryArtifactRequest + type ReportArtifactRequest struct + func NewReportArtifactRequest() *ReportArtifactRequest + type Service interface + DescribeArtifact func(context.Context, *DescribeArtifactRequest) (*Artifact, error) + QueryArtifact func(context.Context, *QueryArtifactRequest) (*types.Set[*Artifact], error) + ReportArtifact func(context.Context, *ReportArtifactRequest) (*Artifact, error) + func GetService() Service