remove unused push/pull params (#650)

This commit is contained in:
Bruce MacDonald 2023-09-29 17:27:19 -04:00 committed by GitHub
parent c0b1bf7537
commit a1b2d95f96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 8 deletions

View file

@ -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 {
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 {

View file

@ -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) {
regOpts := &RegistryOptions{ regOpts := &RegistryOptions{
Insecure: req.Insecure, Insecure: req.Insecure,
Username: req.Username,
Password: req.Password,
} }
ctx := context.Background() ctx := context.Background()