Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tke-eos
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
tke-eos
Commits
bc4bf8e7
Commit
bc4bf8e7
authored
Mar 31, 2019
by
xuezj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取仓库镜像信息
parent
21737355
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
repository.js
app/repository.js
+10
-0
package.json
package.json
+1
-1
tke.containerService.js
services/tke.containerService.js
+4
-0
No files found.
app/repository.js
View file @
bc4bf8e7
...
@@ -6,3 +6,13 @@ router.post('/', async (ctx) => {
...
@@ -6,3 +6,13 @@ router.post('/', async (ctx) => {
const
data
=
await
ctx
.
container
.
repository_get
(
ctx
.
request
.
body
.
namespace
)
const
data
=
await
ctx
.
container
.
repository_get
(
ctx
.
request
.
body
.
namespace
)
ctx
.
body
=
ctx
.
ok
(
data
)
ctx
.
body
=
ctx
.
ok
(
data
)
})
})
router
.
post
(
'
/getTags
'
,
async
(
ctx
)
=>
{
const
data
=
await
ctx
.
container
.
tag_get
(
ctx
.
request
.
body
.
reponame
)
ctx
.
body
=
ctx
.
ok
(
data
)
})
router
.
get
(
'
/getNamespaceInfo
'
,
async
(
ctx
)
=>
{
const
data
=
await
ctx
.
container
.
getNamespaceInfo
(
ctx
.
request
.
query
.
namespace
)
ctx
.
body
=
ctx
.
ok
(
data
)
})
package.json
View file @
bc4bf8e7
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
},
},
"scripts"
:
{
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"start"
:
"NODE_
DEBUG=request NODE_
ENV=env nodemon"
,
"start"
:
"NODE_ENV=env nodemon"
,
"lint"
:
"eslint ."
,
"lint"
:
"eslint ."
,
"fix"
:
"eslint --fix ."
"fix"
:
"eslint --fix ."
},
},
...
...
services/tke.containerService.js
View file @
bc4bf8e7
...
@@ -14,6 +14,10 @@ class Container extends Client {
...
@@ -14,6 +14,10 @@ class Container extends Client {
tag_get
(
reponame
)
{
tag_get
(
reponame
)
{
return
this
.
post
(
'
GetTagList
'
,
{
reponame
})
return
this
.
post
(
'
GetTagList
'
,
{
reponame
})
}
}
getNamespaceInfo
(
namespace
)
{
return
this
.
post
(
'
GetNamespaceInfo
'
,
{
namespace
,
limit
:
50
})
}
}
}
exports
.
create
=
function
()
{
exports
.
create
=
function
()
{
...
...
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