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)
| 213 | //} |
| 214 | |
| 215 | func (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 { |
nothing calls this directly
no test coverage detected