Unverified Commit a1b2d95f authored by Bruce MacDonald's avatar Bruce MacDonald Committed by GitHub
Browse files

remove unused push/pull params (#650)

parent c0b1bf75
...@@ -81,8 +81,6 @@ type CopyRequest struct { ...@@ -81,8 +81,6 @@ type CopyRequest struct {
type PullRequest struct { type PullRequest struct {
Name string `json:"name"` Name string `json:"name"`
Insecure bool `json:"insecure,omitempty"` Insecure bool `json:"insecure,omitempty"`
Username string `json:"username"`
Password string `json:"password"`
} }
type ProgressResponse struct { type ProgressResponse struct {
...@@ -95,8 +93,6 @@ type ProgressResponse struct { ...@@ -95,8 +93,6 @@ type ProgressResponse struct {
type PushRequest struct { type PushRequest struct {
Name string `json:"name"` Name string `json:"name"`
Insecure bool `json:"insecure,omitempty"` Insecure bool `json:"insecure,omitempty"`
Username string `json:"username"`
Password string `json:"password"`
} }
type ListResponse struct { type ListResponse struct {
......
...@@ -292,8 +292,6 @@ func PullModelHandler(c *gin.Context) { ...@@ -292,8 +292,6 @@ func PullModelHandler(c *gin.Context) {
regOpts := &RegistryOptions{ regOpts := &RegistryOptions{
Insecure: req.Insecure, Insecure: req.Insecure,
Username: req.Username,
Password: req.Password,
} }
ctx, cancel := context.WithCancel(c.Request.Context()) ctx, cancel := context.WithCancel(c.Request.Context())
...@@ -323,8 +321,6 @@ func PushModelHandler(c *gin.Context) { ...@@ -323,8 +321,6 @@ func PushModelHandler(c *gin.Context) {
regOpts := &RegistryOptions{ regOpts := &RegistryOptions{
Insecure: req.Insecure, Insecure: req.Insecure,
Username: req.Username,
Password: req.Password,
} }
ctx := context.Background() ctx := context.Background()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment