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
c365f195
You need to sign in or sign up before continuing.
Commit
c365f195
authored
May 30, 2024
by
Josh Yan
Browse files
directly use isvalidpart
parent
298c996e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
types/model/name.go
types/model/name.go
+1
-7
No files found.
types/model/name.go
View file @
c365f195
...
@@ -252,13 +252,7 @@ func (n Name) DisplayShortest() string {
...
@@ -252,13 +252,7 @@ func (n Name) DisplayShortest() string {
}
}
func
IsValidNamespace
(
namespace
string
)
bool
{
func
IsValidNamespace
(
namespace
string
)
bool
{
name
:=
Name
{
return
isValidPart
(
kindNamespace
,
namespace
)
Host
:
"h"
,
Model
:
"m"
,
Namespace
:
namespace
,
Tag
:
"t"
,
}
return
name
.
IsValid
()
}
}
// IsValid reports whether all parts of the name are present and valid. The
// IsValid reports whether all parts of the name are present and valid. The
...
...
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