Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Harbor
Commits
e667bd7a
Commit
e667bd7a
authored
8 years ago
by
wy65701436
Browse files
Options
Download
Email Patches
Plain Diff
add version file
parent
5baf565c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VERSION
+1
-0
VERSION
src/ui/api/systeminfo.go
+2
-2
src/ui/api/systeminfo.go
with
3 additions
and
2 deletions
+3
-2
VERSION
0 → 100644
+
1
-
0
View file @
e667bd7a
dev
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/ui/api/systeminfo.go
+
2
-
2
View file @
e667bd7a
...
...
@@ -116,7 +116,7 @@ func (sia *SystemInfoAPI) GetGeneralInfo() {
registryURL
=
l
[
0
]
}
_
,
caStatErr
:=
os
.
Stat
(
defaultRootCert
)
harbor
_v
ersion
:=
sia
.
getVersion
()
harbor
V
ersion
:=
sia
.
getVersion
()
info
:=
GeneralInfo
{
AdmiralEndpoint
:
cfg
[
common
.
AdmiralEndpoint
]
.
(
string
),
WithAdmiral
:
config
.
WithAdmiral
(),
...
...
@@ -126,7 +126,7 @@ func (sia *SystemInfoAPI) GetGeneralInfo() {
SelfRegistration
:
cfg
[
common
.
SelfRegistration
]
.
(
bool
),
RegistryURL
:
registryURL
,
HasCARoot
:
caStatErr
==
nil
,
HarborVersion
:
harbor
_v
ersion
,
HarborVersion
:
harbor
V
ersion
,
}
sia
.
Data
[
"json"
]
=
info
sia
.
ServeJSON
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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