Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
a1b2d95f
Unverified
Commit
a1b2d95f
authored
Sep 29, 2023
by
Bruce MacDonald
Committed by
GitHub
Sep 29, 2023
Browse files
remove unused push/pull params (#650)
parent
c0b1bf75
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
+0
-8
api/types.go
api/types.go
+0
-4
server/routes.go
server/routes.go
+0
-4
No files found.
api/types.go
View file @
a1b2d95f
...
@@ -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
{
...
...
server/routes.go
View file @
a1b2d95f
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment