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

tensorchord / openmodelz / 6689709675

30 Oct 2023 07:40AM UTC coverage: 24.968% (-1.0%) from 25.971%
6689709675

Pull #194

github

xieydd
Fix ci error

Signed-off-by: xieydd <xieydd@gmail.com>
Pull Request #194: feat: Support volume

321 of 321 new or added lines in 8 files covered. (100.0%)

969 of 3881 relevant lines covered (24.97%)

1.58 hits per line

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

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

3
import (
4
        "net/http"
5

6
        "github.com/gin-gonic/gin"
7
        "github.com/tensorchord/openmodelz/agent/api/types"
8
)
9

10
// @Summary     Create the secret.
11
// @Description Create the secret.
12
// @Tags        secret
13
// @Accept      json
14
// @Produce     json
15
// @Param       body body     types.Secret true "Secret"
16
// @Success     200  {object} types.Secret
17
// @Router      /system/secrets [post]
18
func (s *Server) handleSecretCreate(c *gin.Context) error {
×
19
        var req types.Secret
×
20
        if err := c.ShouldBindJSON(&req); err != nil {
×
21
                return NewError(http.StatusBadRequest, err, "failed to parse request body")
×
22
        }
×
23

24
        if err := s.runtime.CreateSecret(c.Request.Context(), &req); err != nil {
×
25
                return NewError(http.StatusInternalServerError, err, "failed to create secret")
×
26
        }
×
27

28
        c.JSON(http.StatusOK, req)
×
29
        return nil
×
30
}
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

© 2026 Coveralls, Inc