MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / initGateway

Method initGateway

module/publish/iml.go:119–143  ·  view source on GitHub ↗
(ctx context.Context, partitionId string, clientDriver gateway.IClientDriver)

Source from the content-addressed store, hash-verified

117}
118
119func (i *imlPublishModule) initGateway(ctx context.Context, partitionId string, clientDriver gateway.IClientDriver) error {
120 return nil
121 //projects, err := i.serviceService.List(ctx)
122 //if err != nil {
123 // return err
124 //}
125 //projectIds := utils.SliceToSlice(projects, func(p *service.Service) string {
126 // return p.Id
127 //})
128 //for _, projectId := range projectIds {
129 // releaseInfo, err := i.GetProjectRelease(ctx, projectId, partitionId)
130 // if err != nil {
131 // return err
132 // }
133 // if releaseInfo == nil {
134 // continue
135 // }
136 //
137 // err = clientDriver.Project().Online(ctx, releaseInfo)
138 // if err != nil {
139 // return err
140 // }
141 //}
142 //return nil
143}
144
145func (i *imlPublishModule) getProjectRelease(ctx context.Context, projectID string, commitId string) (*gateway.ProjectRelease, error) {
146 commits, err := i.releaseService.GetCommits(ctx, commitId)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected