Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const AliYunRegistry + func GetApplicationId(ctx context.Context) string + func GetProjectID(ctx context.Context) string + func GetVersion(ctx context.Context) string + func ParseMetaFromReadCloser(file io.ReadCloser) (*apistructs.ReleaseMetadata, map[string]string, error) + type ReleaseService struct + Config *releaseConfig + Etcd *clientv3.Client + ReleaseRule *release_rule.ReleaseRule + func (s *ReleaseService) CheckVersion(ctx context.Context, req *pb.CheckVersionRequest) (*pb.CheckVersionResponse, error) + func (s *ReleaseService) Convert(releaseRequest *pb.ReleaseCreateRequest, appReleases []db.Release) (*db.Release, error) + func (s *ReleaseService) Create(req *pb.ReleaseCreateRequest) (string, error) + func (s *ReleaseService) CreateByFile(req *pb.ReleaseUploadRequest, file io.ReadCloser) (string, string, error) + func (s *ReleaseService) CreateRelease(ctx context.Context, req *pb.ReleaseCreateRequest) (*pb.ReleaseCreateResponseData, error) + func (s *ReleaseService) Delete(orgID int64, opusMap map[string]*pb.ListArtifactsRespItem, ...) error + func (s *ReleaseService) DeleteRelease(ctx context.Context, req *pb.ReleaseDeleteRequest) (*pb.ReleaseDeleteResponse, error) + func (s *ReleaseService) DeleteReleases(ctx context.Context, req *pb.ReleasesDeleteRequest) (*pb.ReleasesDeleteResponse, error) + func (s *ReleaseService) Get(orgID int64, releaseID string) (*pb.ReleaseGetResponseData, error) + func (s *ReleaseService) GetBranchLatestRelease(projectID, appID int64, gitBranch string) (*db.Release, error) + func (s *ReleaseService) GetDiceYAML(orgID int64, releaseID string) (string, error) + func (s *ReleaseService) GetImages(dices []string) []*imagedb.Image + func (s *ReleaseService) GetIosPlist(ctx context.Context, req *pb.GetIosPlistRequest) (*pb.GetIosPlistResponse, error) + func (s *ReleaseService) GetIosPlistService(orgID int64, releaseID string) (string, error) + func (s *ReleaseService) GetLatestReleases(ctx context.Context, req *pb.GetLatestReleasesRequest) (*pb.GetLatestReleasesResponse, error) + func (s *ReleaseService) GetLatestReleasesByProjectAndVersion(projectID int64, version string) (*[]db.Release, error) + func (s *ReleaseService) GetRelease(ctx context.Context, req *pb.ReleaseGetRequest) (*pb.ReleaseGetResponse, error) + func (s *ReleaseService) GetReleaseNamesByApp(orgID, appID int64) ([]string, error) + func (s *ReleaseService) List(ctx context.Context, orgID int64, req *pb.ReleaseListRequest) (*pb.ReleaseListResponseData, error) + func (s *ReleaseService) ListRelease(ctx context.Context, req *pb.ReleaseListRequest) (*pb.ReleaseListResponse, error) + func (s *ReleaseService) ListReleaseName(ctx context.Context, req *pb.ListReleaseNameRequest) (*pb.ListReleaseNameResponse, error) + func (s *ReleaseService) ParseReleaseFile(ctx context.Context, req *pb.ParseReleaseFileRequest) (*pb.ParseReleaseFileResponse, error) + func (s *ReleaseService) PutOffRelease(ctx context.Context, req *pb.ReleasePutOffRequest) (*pb.ReleasePutOffResponse, error) + func (s *ReleaseService) PutOnRelease(ctx context.Context, req *pb.ReleasePutOnRequest) (*pb.ReleasePutOnResponse, error) + func (s *ReleaseService) ReleaseGC(ctx context.Context, req *pb.ReleaseGCRequest) (*pb.ReleaseDataResponse, error) + func (s *ReleaseService) RemoveDeprecatedsReleases(now time.Time) error + func (s *ReleaseService) ToFormal(releaseIDs []string) error + func (s *ReleaseService) ToFormalRelease(ctx context.Context, req *pb.FormalReleaseRequest) (*pb.FormalReleaseResponse, error) + func (s *ReleaseService) ToFormalReleases(ctx context.Context, req *pb.FormalReleasesRequest) (*pb.FormalReleasesResponse, error) + func (s *ReleaseService) Update(orgID int64, releaseID string, req *pb.ReleaseUpdateRequest) error + func (s *ReleaseService) UpdateReference(orgID int64, releaseID string, req *pb.ReleaseReferenceUpdateRequest) error + func (s *ReleaseService) UpdateRelease(ctx context.Context, req *pb.ReleaseUpdateRequest) (*pb.ReleaseUpdateResponse, error) + func (s *ReleaseService) UpdateReleaseReference(ctx context.Context, req *pb.ReleaseReferenceUpdateRequest) (*pb.ReleaseDataResponse, error) + func (s *ReleaseService) UploadRelease(ctx context.Context, req *pb.ReleaseUploadRequest) (*pb.ReleaseUploadResponse, error) + type ResourceType string + const ResourceTypeAddonYml + const ResourceTypeAndroid + const ResourceTypeBinary + const ResourceTypeDataSet + const ResourceTypeDiceYml + const ResourceTypeH5 + const ResourceTypeIOS + const ResourceTypeMigration + const ResourceTypeSQL + const ResourceTypeScript