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

Method GetRunningApiProxyCommit

service/release/iml.go:215–223  ·  view source on GitHub ↗

func (s *imlReleaseService) GetApiDocCommit(ctx context.Context, id string, apiUUID string) (string, error) { commits, err := s.getCommitByType(ctx, id, CommitApiDocument, apiUUID, CommitApiDocument) if err != nil { return "", err } if len(commits) == 0 { return "", errors.New("not found")

(ctx context.Context, service string, apiUUID string)

Source from the content-addressed store, hash-verified

213//}
214
215func (s *imlReleaseService) GetRunningApiProxyCommit(ctx context.Context, service string, apiUUID string) (string, error) {
216 running, err := s.releaseRuntime.First(ctx, map[string]interface{}{
217 "service": service,
218 })
219 if err != nil {
220 return "", err
221 }
222 return s.GetApiProxyCommit(ctx, running.Release, apiUUID)
223}
224
225//
226//func (s *imlReleaseService) DiffApis(ctx context.Context, baseApis []*Api, targetApis []*Api) []*APiDiff {

Callers

nothing calls this directly

Calls 1

GetApiProxyCommitMethod · 0.95

Tested by

no test coverage detected