• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tensorchord / openmodelz / 6180409240

14 Sep 2023 03:02AM UTC coverage: 26.069% (-3.9%) from 29.927%
6180409240

push

github

web-flow
feat: Support BYOC (#171)

Signed-off-by: xieydd <xieydd@gmail.com>

443 of 443 new or added lines in 14 files covered. (100.0%)

939 of 3602 relevant lines covered (26.07%)

1.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/agent/pkg/server/user.go
1
package server
2

3
import (
4
        "context"
5
)
6

7
func (s *Server) getUIDFromDeploymentID(ctx context.Context, id string) (string, bool) {
×
8

×
9
        uid, exit := s.cache.Get(id)
×
10
        if exit {
×
11
                return uid.(string), true
×
12
        }
×
13

14
        uid, err := s.modelzCloudClient.GetUIDFromDeploymentID(ctx, s.config.ModelZCloud.TokenID, s.config.ModelZCloud.ID, id)
×
15
        if err != nil {
×
16
                return "", false
×
17
        }
×
18

19
        // no expiration
20
        s.cache.SetWithTTL(id, uid, 1, 0)
×
21
        return uid.(string), true
×
22
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc