Explorar o código

remove unused push/pull params (#650)

Bruce MacDonald hai 1 ano
pai
achega
a1b2d95f96
Modificáronse 2 ficheiros con 0 adicións e 8 borrados
  1. 0 4
      api/types.go
  2. 0 4
      server/routes.go

+ 0 - 4
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 {

+ 0 - 4
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()