MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / GetProjectRelease

Method GetProjectRelease

module/publish/iml.go:301–312  ·  view source on GitHub ↗
(ctx context.Context, projectID string, partitionId string)

Source from the content-addressed store, hash-verified

299}
300
301func (i *imlPublishModule) GetProjectRelease(ctx context.Context, projectID string, partitionId string) (*gateway.ProjectRelease, error) {
302
303 releaseInfo, err := i.releaseService.GetRunning(ctx, projectID)
304 if err != nil {
305 if !errors.Is(err, gorm.ErrRecordNotFound) {
306 return nil, err
307 }
308 return nil, nil
309 }
310
311 return i.getProjectRelease(ctx, projectID, releaseInfo.UUID)
312}
313
314func (i *imlPublishModule) getReleaseInfo(ctx context.Context, projectID, releaseId, version string, clusterIds []string) (map[string]*gateway.ProjectRelease, error) {
315 projectRelease, err := i.getProjectRelease(ctx, projectID, releaseId)

Callers

nothing calls this directly

Calls 2

getProjectReleaseMethod · 0.95
GetRunningMethod · 0.65

Tested by

no test coverage detected