From a1b2d95f967df6b4f89a6b9ed67263711d59593c Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Fri, 29 Sep 2023 17:27:19 -0400 Subject: [PATCH] remove unused push/pull params (#650) --- api/types.go | 4 ---- server/routes.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/api/types.go b/api/types.go index e33002d2..96324edb 100644 --- a/api/types.go +++ b/api/types.go @@ -81,8 +81,6 @@ type CopyRequest struct { type PullRequest struct { Name string `json:"name"` Insecure bool `json:"insecure,omitempty"` - Username string `json:"username"` - Password string `json:"password"` } type ProgressResponse struct { @@ -95,8 +93,6 @@ type ProgressResponse struct { type PushRequest struct { Name string `json:"name"` Insecure bool `json:"insecure,omitempty"` - Username string `json:"username"` - Password string `json:"password"` } type ListResponse struct { diff --git a/server/routes.go b/server/routes.go index 5bc06739..6ca7b428 100644 --- a/server/routes.go +++ b/server/routes.go @@ -292,8 +292,6 @@ func PullModelHandler(c *gin.Context) { regOpts := &RegistryOptions{ Insecure: req.Insecure, - Username: req.Username, - Password: req.Password, } ctx, cancel := context.WithCancel(c.Request.Context()) @@ -323,8 +321,6 @@ func PushModelHandler(c *gin.Context) { regOpts := &RegistryOptions{ Insecure: req.Insecure, - Username: req.Username, - Password: req.Password, } ctx := context.Background()